From 0d310a693c50a8a44a8190f3f84709e13bbfb86d Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 31 Jul 2026 05:31:38 +0000 Subject: [PATCH 1/2] chore: update googleapis commitish to c5dcac8 --- librarian.yaml | 492 ++++++++++++++++++++++++------------------------- 1 file changed, 246 insertions(+), 246 deletions(-) diff --git a/librarian.yaml b/librarian.yaml index 347e9f6c7557..ed96dbb44ced 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.31.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: b8486a2f44f15dc578a9dc1e17b144253079d5c1 - sha256: 12411ca5cb6c70d7c873d7058c5182a8d23fa88af8d984b0e73b1c3ad1d83766 + commit: c5dcac8b1de4cb23c610bd4890b184e36845c56e + sha256: 34d0c90dd50c2ba8b4bfdc5e090f48e1ae06ef9943b8536d6c15d4f33cecf8c4 showcase: commit: f97fd357084b9e85ef5dd02ba084551c3f85191c sha256: b5d293831e6895ca139d9a0a92eec75a82e73398978b140af8f7c5e91c7c969a @@ -57,9 +57,9 @@ libraries: - path: google/cloud/accessapproval/v1 java: api_description_override: enables controlling access to your organization's data by Google personnel. + released_version: 2.96.0 name_pretty_override: Access Approval product_documentation_override: https://cloud.google.com/access-approval/docs/ - released_version: 2.96.0 - name: accesscontextmanager version: 1.96.0 apis: @@ -74,9 +74,9 @@ libraries: java: api_description_override: n/a artifact_id: google-identity-accesscontextmanager + released_version: 1.96.0 name_pretty_override: Identity Access Context Manager product_documentation_override: n/a - released_version: 1.96.0 - name: admanager version: 0.54.0 apis: @@ -86,10 +86,10 @@ libraries: api_description_override: The Ad Manager API enables an app to integrate with Google Ad Manager. You can read Ad Manager data and run reports using the API. artifact_id: ad-manager client_documentation_override: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview + released_version: 0.54.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Ad Manager API product_documentation_override: https://developers.google.com/ad-manager/api/beta - released_version: 0.54.0 - name: advisorynotifications version: 0.84.0 apis: @@ -98,9 +98,9 @@ libraries: omit_common_resources: true java: api_description_override: An API for accessing Advisory Notifications in Google Cloud. + released_version: 0.84.0 name_pretty_override: Advisory Notifications API product_documentation_override: https://cloud.google.com/advisory-notifications/ - released_version: 0.84.0 - name: agentidentity version: 0.1.0 apis: @@ -153,11 +153,11 @@ libraries: - google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java java: api_description_override: is an integrated suite of machine learning tools and services for building and using ML models with AutoML or custom code. It offers both novices and experts the best workbench for the entire machine learning development lifecycle. + released_version: 3.96.0 name_pretty_override: Vertex AI product_documentation_override: https://cloud.google.com/vertex-ai/docs rest_documentation: https://cloud.google.com/vertex-ai/docs/reference/rest rpc_documentation: https://cloud.google.com/vertex-ai/docs/reference/rpc - released_version: 3.96.0 - name: alloydb version: 0.84.0 apis: @@ -178,10 +178,10 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: AlloyDB is a fully managed, PostgreSQL-compatible database service with industry-leading performance, availability, and scale. + released_version: 0.84.0 name_pretty_override: AlloyDB product_documentation_override: https://cloud.google.com/alloydb/ rest_documentation: https://cloud.google.com/alloydb/docs/reference/rest - released_version: 0.84.0 - name: alloydb-connectors version: 0.73.0 apis: @@ -209,11 +209,11 @@ libraries: java: api_id_override: connectors.googleapis.com api_description_override: AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. + released_version: 0.73.0 name_pretty_override: AlloyDB connectors product_documentation_override: https://cloud.google.com/alloydb/docs rest_documentation: https://cloud.google.com/alloydb/docs/reference/rest transport_override: grpc - released_version: 0.73.0 - name: analytics-admin version: 0.105.0 apis: @@ -223,9 +223,9 @@ libraries: api_description_override: allows you to manage Google Analytics accounts and properties. artifact_id: google-analytics-admin codeowner_team: '@googleapis/analytics-dpe' + released_version: 0.105.0 name_pretty_override: Analytics Admin product_documentation_override: https://developers.google.com/analytics - released_version: 0.105.0 - name: analytics-data version: 0.106.0 apis: @@ -236,18 +236,18 @@ libraries: api_description_override: provides programmatic methods to access report data in Google Analytics App+Web properties. artifact_id: google-analytics-data codeowner_team: '@googleapis/analytics-dpe' + released_version: 0.106.0 name_pretty_override: Analytics Data product_documentation_override: https://developers.google.com/analytics/trusted-testing/analytics-data - released_version: 0.106.0 - name: analyticshub version: 0.92.0 apis: - path: google/cloud/bigquery/analyticshub/v1 java: api_description_override: TBD + released_version: 0.92.0 name_pretty_override: Analytics Hub API product_documentation_override: https://cloud.google.com/bigquery/TBD - released_version: 0.92.0 - name: api-gateway version: 2.95.0 apis: @@ -255,19 +255,19 @@ libraries: java: api_id_override: apigateway.googleapis.com api_description_override: enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint. + released_version: 2.95.0 name_pretty_override: API Gateway product_documentation_override: https://cloud.google.com/api-gateway/docs rest_documentation: https://cloud.google.com/api-gateway/docs/reference/rest - released_version: 2.95.0 - name: apigee-connect version: 2.95.0 apis: - path: google/cloud/apigeeconnect/v1 java: api_description_override: allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. + released_version: 2.95.0 name_pretty_override: Apigee Connect product_documentation_override: https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/ - released_version: 2.95.0 - name: apihub version: 0.48.0 apis: @@ -279,19 +279,19 @@ libraries: api_id_override: apihub.googleapis.com api_description_override: API hub lets you consolidate and organize information about all of the APIs of interest to your organization. API hub lets you capture critical information about APIs that allows developers to discover and evaluate them easily and leverage the work of other teams wherever possible. API platform teams can use API hub to have visibility into and manage their portfolio of APIs. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview + released_version: 0.48.0 library_type_override: GAPIC_AUTO name_pretty_override: API hub API product_documentation_override: https://cloud.google.com/apigee/docs/apihub/what-is-api-hub - released_version: 0.48.0 - name: apikeys version: 0.93.0 apis: - path: google/api/apikeys/v2 java: api_description_override: API Keys lets you create and manage your API keys for your projects. + released_version: 0.93.0 name_pretty_override: API Keys API product_documentation_override: https://cloud.google.com/api-keys/ - released_version: 0.93.0 - name: appengine-admin version: 2.95.0 apis: @@ -299,9 +299,9 @@ libraries: java: api_description_override: you to manage your App Engine applications. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.95.0 name_pretty_override: App Engine Admin API product_documentation_override: https://cloud.google.com/appengine/docs/admin-api/ - released_version: 2.95.0 - name: apphub version: 0.59.0 apis: @@ -312,10 +312,10 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: App Hub simplifies the process of building, running, and managing applications on Google Cloud. + released_version: 0.59.0 name_pretty_override: App Hub API product_documentation_override: https://cloud.google.com/app-hub/docs/overview rpc_documentation: https://cloud.google.com/app-hub/docs/reference/rpc - released_version: 0.59.0 - name: appoptimize version: 0.5.0 apis: @@ -327,10 +327,10 @@ libraries: api_id_override: appoptimize.googleapis.com api_description_override: The App Optimize API provides developers and platform teams with tools to monitor, analyze, and improve the performance and cost-efficiency of their cloud applications. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview + released_version: 0.5.0 library_type_override: GAPIC_AUTO name_pretty_override: App Optimize API product_documentation_override: https://docs.cloud.google.com/app-optimize/overview - released_version: 0.5.0 - name: area120-tables version: 0.99.0 apis: @@ -339,9 +339,9 @@ libraries: api_description_override: provides programmatic methods to the Area 120 Tables API. artifact_id: google-area120-tables group_id: com.google.area120 + released_version: 0.99.0 name_pretty_override: Area 120 Tables product_documentation_override: https://area120.google.com/ - released_version: 0.99.0 - name: artifact-registry version: 1.94.0 apis: @@ -356,11 +356,11 @@ libraries: java: api_description_override: provides a single place for your organization to manage container images and language packages (such as Maven and npm). It is fully integrated with Google Cloud's tooling and runtimes and comes with support for native artifact protocols. This makes it simple to integrate it with your CI/CD tooling to set up automated pipelines. codeowner_team: '@googleapis/aap-dpes' + released_version: 1.94.0 name_pretty_override: Artifact Registry product_documentation_override: https://cloud.google.com/artifact-registry rest_documentation: https://cloud.google.com/artifact-registry/docs/reference/rest rpc_documentation: https://cloud.google.com/artifact-registry/docs/reference/rpc - released_version: 1.94.0 - name: asset version: 3.99.0 apis: @@ -376,9 +376,9 @@ libraries: api_reference: https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview api_description_override: provides inventory services based on a time series database. This database keeps a five week history of Google Cloud asset metadata. The Cloud Asset Inventory export service allows you to export all asset metadata at a certain timestamp or export event change history during a timeframe. issue_tracker_override: https://issuetracker.google.com/issues/new?component=187210 + released_version: 3.99.0 name_pretty_override: Cloud Asset Inventory product_documentation_override: https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview - released_version: 3.99.0 - name: assured-workloads version: 2.95.0 apis: @@ -386,10 +386,10 @@ libraries: - path: google/cloud/assuredworkloads/v1beta1 java: api_description_override: allows you to secure your government workloads and accelerate your path to running compliant workloads on Google Cloud with Assured Workloads for Government. + released_version: 2.95.0 name_pretty_override: Assured Workloads for Government product_documentation_override: https://cloud.google.com/assured-workloads/ rest_documentation: https://cloud.google.com/assured-workloads/docs/reference/rest - released_version: 2.95.0 - name: auditmanager version: 0.13.0 apis: @@ -401,10 +401,10 @@ libraries: api_id_override: auditmanager.googleapis.com api_description_override: Lists information about the supported locations for this service. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview + released_version: 0.13.0 library_type_override: GAPIC_AUTO name_pretty_override: Audit Manager API product_documentation_override: https://cloud.google.com/audit-manager/docs - released_version: 0.13.0 - name: automl version: 2.95.0 apis: @@ -413,11 +413,11 @@ libraries: java: api_description_override: makes the power of machine learning available to you even if you have limited knowledge of machine learning. You can use AutoML to build on Google's machine learning capabilities to create your own custom machine learning models that are tailored to your business needs, and then integrate those models into your applications and web sites. issue_tracker_override: https://issuetracker.google.com/savedsearches/559744 + released_version: 2.95.0 name_pretty_override: Cloud Auto ML product_documentation_override: https://cloud.google.com/automl/docs/ rest_documentation: https://cloud.google.com/automl/docs/reference/rest rpc_documentation: https://cloud.google.com/automl/docs/reference/rpc - released_version: 2.95.0 - name: backstory version: 0.3.0 apis: @@ -431,10 +431,10 @@ libraries: api_id_override: backstory.googleapis.com api_description_override: Common Universal Data Model (UDM) and Entity protos used by Chronicle. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-backstory/latest/overview + released_version: 0.3.0 library_type_override: GAPIC_AUTO name_pretty_override: Malachite Common Protos product_documentation_override: https://cloud.google.com/chronicle/docs/secops/secops-overview - released_version: 0.3.0 - name: backupdr version: 0.54.0 apis: @@ -447,10 +447,10 @@ libraries: api_id_override: backupdr.googleapis.com api_description_override: 'Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. ' client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview + released_version: 0.54.0 library_type_override: GAPIC_AUTO name_pretty_override: Backup and DR Service API product_documentation_override: https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-dr - released_version: 0.54.0 - name: bare-metal-solution version: 0.95.0 apis: @@ -461,11 +461,11 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk. + released_version: 0.95.0 name_pretty_override: Bare Metal Solution product_documentation_override: https://cloud.google.com/bare-metal/docs rest_documentation: https://cloud.google.com/bare-metal/docs/reference/rest rpc_documentation: https://cloud.google.com/bare-metal/docs/reference/rpc - released_version: 0.95.0 - name: batch version: 0.95.0 apis: @@ -480,9 +480,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: n/a + released_version: 0.95.0 name_pretty_override: Cloud Batch product_documentation_override: https://cloud.google.com/ - released_version: 0.95.0 - name: beyondcorp-appconnections version: 0.93.0 apis: @@ -494,9 +494,9 @@ libraries: java: api_description_override: is Google's implementation of the zero trust model. It builds upon a decade of experience at Google, combined with ideas and best practices from the community. By shifting access controls from the network perimeter to individual users, BeyondCorp enables secure work from virtually any location without the need for a traditional VPN. api_shortname_override: beyondcorp-appconnections + released_version: 0.93.0 name_pretty_override: BeyondCorp AppConnections product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - released_version: 0.93.0 - name: beyondcorp-appconnectors version: 0.93.0 apis: @@ -508,9 +508,9 @@ libraries: java: api_description_override: provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors. api_shortname_override: beyondcorp-appconnectors + released_version: 0.93.0 name_pretty_override: BeyondCorp AppConnectors product_documentation_override: cloud.google.com/beyondcorp-enterprise/ - released_version: 0.93.0 - name: beyondcorp-appgateways version: 0.93.0 apis: @@ -523,9 +523,9 @@ libraries: api_id_override: beyondcorp.googleapis.com api_description_override: A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. api_shortname_override: beyondcorp-appgateways + released_version: 0.93.0 name_pretty_override: BeyondCorp AppGateways product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - released_version: 0.93.0 - name: beyondcorp-clientconnectorservices version: 0.93.0 apis: @@ -538,9 +538,9 @@ libraries: api_id_override: beyondcorp.googleapis.com api_description_override: A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. api_shortname_override: beyondcorp-clientconnectorservices + released_version: 0.93.0 name_pretty_override: BeyondCorp ClientConnectorServices product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - released_version: 0.93.0 - name: beyondcorp-clientgateways version: 0.93.0 apis: @@ -553,9 +553,9 @@ libraries: api_id_override: beyondcorp.googleapis.com api_description_override: A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. api_shortname_override: beyondcorp-clientgateways + released_version: 0.93.0 name_pretty_override: BeyondCorp ClientGateways product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - released_version: 0.93.0 - name: biglake version: 0.83.0 apis: @@ -565,9 +565,9 @@ libraries: - path: google/cloud/bigquery/biglake/v1alpha1 java: api_description_override: The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. + released_version: 0.83.0 name_pretty_override: BigLake product_documentation_override: https://cloud.google.com/biglake - released_version: 0.83.0 - name: bigquery-data-exchange version: 2.90.0 apis: @@ -577,9 +577,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. + released_version: 2.90.0 name_pretty_override: Analytics Hub product_documentation_override: https://cloud.google.com/analytics-hub - released_version: 2.90.0 - name: bigqueryconnection version: 2.97.0 apis: @@ -588,9 +588,9 @@ libraries: java: api_description_override: allows users to manage BigQuery connections to external data sources. client_documentation_override: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 + released_version: 2.97.0 name_pretty_override: Cloud BigQuery Connection product_documentation_override: https://cloud.google.com/bigquery/docs/reference/bigqueryconnection/rest - released_version: 2.97.0 - name: bigquerydatapolicy version: 0.92.0 apis: @@ -600,9 +600,9 @@ libraries: - path: google/cloud/bigquery/datapolicies/v1beta1 java: api_description_override: Allows users to manage BigQuery data policies. + released_version: 0.92.0 name_pretty_override: BigQuery DataPolicy API product_documentation_override: https://cloud.google.com/bigquery/docs/reference/datapolicy/ - released_version: 0.92.0 - name: bigquerydatatransfer version: 2.95.0 apis: @@ -635,9 +635,9 @@ libraries: java: api_description_override: transfers data from partner SaaS applications to Google BigQuery on a scheduled, managed basis. issue_tracker_override: https://issuetracker.google.com/savedsearches/559654 + released_version: 2.95.0 name_pretty_override: BigQuery Data Transfer Service product_documentation_override: https://cloud.google.com/bigquery/transfer/ - released_version: 2.95.0 - name: bigquerymigration version: 0.98.0 apis: @@ -645,19 +645,19 @@ libraries: - path: google/cloud/bigquery/migration/v2alpha java: api_description_override: BigQuery Migration API + released_version: 0.98.0 name_pretty_override: BigQuery Migration product_documentation_override: https://cloud.google.com/bigquery/docs rest_documentation: https://cloud.google.com/bigquery/docs/reference/rest - released_version: 0.98.0 - name: bigqueryreservation version: 2.96.0 apis: - path: google/cloud/bigquery/reservation/v1 java: api_description_override: allows users to manage their flat-rate BigQuery reservations. + released_version: 2.96.0 name_pretty_override: Cloud BigQuery Reservation product_documentation_override: https://cloud.google.com/bigquery/docs/reference/reservations/rpc - released_version: 2.96.0 - name: bigquerystorage version: 3.31.0 apis: @@ -783,12 +783,12 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history codeowner_team: '@googleapis/bigquery-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559654 + released_version: 3.31.0 library_type_override: GAPIC_COMBO name_pretty_override: BigQuery Storage product_documentation_override: https://cloud.google.com/bigquery/docs/reference/storage/ recommended_package: com.google.cloud.bigquery.storage.v1 transport_override: grpc - released_version: 3.31.0 - name: bigtable version: 2.81.0 apis: @@ -880,11 +880,11 @@ libraries: - google-cloud-bigtable-bom extra_versioned_modules: google-cloud-bigtable-emulator,google-cloud-bigtable-emulator-core issue_tracker_override: https://issuetracker.google.com/savedsearches/559777 + released_version: 2.81.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Bigtable product_documentation_override: https://cloud.google.com/bigtable recommended_package: com.google.cloud.bigtable - released_version: 2.81.0 - name: billing version: 2.95.0 apis: @@ -896,11 +896,11 @@ libraries: java: api_description_override: allows developers to manage their billing accounts or browse the catalog of SKUs and pricing. issue_tracker_override: https://issuetracker.google.com/savedsearches/559770 + released_version: 2.95.0 name_pretty_override: Cloud Billing product_documentation_override: https://cloud.google.com/billing/docs rest_documentation: https://cloud.google.com/billing/docs/reference/rest rpc_documentation: https://cloud.google.com/billing/docs/reference/rpc - released_version: 2.95.0 - name: billingbudgets version: 2.95.0 apis: @@ -908,9 +908,9 @@ libraries: - path: google/cloud/billing/budgets/v1beta1 java: api_description_override: allows you to avoid surprises on your bill by creating budgets to monitor all your Google Cloud charges in one place. + released_version: 2.95.0 name_pretty_override: Cloud Billing Budgets product_documentation_override: https://cloud.google.com/billing/docs/how-to/budgets - released_version: 2.95.0 - name: binary-authorization version: 1.94.0 apis: @@ -920,11 +920,11 @@ libraries: api_id_override: binaryauthorization.googleapis.com api_description_override: ' is a service on Google Cloud that provides centralized software supply-chain security for applications that run on Google Kubernetes Engine (GKE) and Anthos clusters on VMware' codeowner_team: '@googleapis/aap-dpes' + released_version: 1.94.0 name_pretty_override: Binary Authorization product_documentation_override: https://cloud.google.com/binary-authorization/docs rest_documentation: https://cloud.google.com/binary-authorization/docs/reference/rest rpc_documentation: https://cloud.google.com/binary-authorization/docs/reference/rpc - released_version: 1.94.0 - name: capacityplanner version: 0.18.0 apis: @@ -933,10 +933,10 @@ libraries: api_id_override: capacityplanner.googleapis.com api_description_override: Provides programmatic access to Capacity Planner features. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview + released_version: 0.18.0 library_type_override: GAPIC_AUTO name_pretty_override: Capacity Planner API product_documentation_override: https://cloud.google.com/capacity-planner/docs - released_version: 0.18.0 - name: certificate-manager version: 0.98.0 apis: @@ -947,9 +947,9 @@ libraries: java: api_id_override: certificatemanager.googleapis.com api_description_override: lets you acquire and manage TLS (SSL) certificates for use with Cloud Load Balancing. + released_version: 0.98.0 name_pretty_override: Certificate Manager product_documentation_override: https://cloud.google.com/certificate-manager/docs - released_version: 0.98.0 - name: ces version: 0.11.0 apis: @@ -965,32 +965,32 @@ libraries: api_id_override: ces.googleapis.com api_description_override: Customer Experience Agent Studio (CX Agent Studio) is a minimal code conversational agent builder. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview + released_version: 0.11.0 library_type_override: GAPIC_AUTO name_pretty_override: Gemini Enterprise for Customer Experience API product_documentation_override: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps rpc_documentation: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/rpc - released_version: 0.11.0 - name: channel version: 3.99.0 apis: - path: google/cloud/channel/v1 java: api_description_override: With Channel Services, Google Cloud partners and resellers have a single unified resale platform, with a unified resale catalog, customer management, order management, billing management, policy and authorization management, and cost management. + released_version: 3.99.0 name_pretty_override: Channel Services product_documentation_override: https://cloud.google.com/channel/docs rest_documentation: https://cloud.google.com/channel/docs/reference/rest rpc_documentation: https://cloud.google.com/channel/docs/reference/rpc - released_version: 3.99.0 - name: chat version: 0.59.0 apis: - path: google/chat/v1 java: api_description_override: The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. + released_version: 0.59.0 name_pretty_override: Google Chat API product_documentation_override: https://developers.google.com/chat/concepts rest_documentation: https://developers.google.com/chat/api/reference/rest - released_version: 0.59.0 - name: chronicle version: 0.33.0 apis: @@ -999,10 +999,10 @@ libraries: api_id_override: chronicle.googleapis.com api_description_override: The Google Cloud Security Operations API, popularly known as the Chronicle API, serves endpoints that enable security analysts to analyze and mitigate a security threat throughout its lifecycle client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview + released_version: 0.33.0 library_type_override: GAPIC_AUTO name_pretty_override: Chronicle API product_documentation_override: https://cloud.google.com/chronicle/docs/secops/secops-overview - released_version: 0.33.0 - name: cloudapiregistry version: 0.14.0 apis: @@ -1018,10 +1018,10 @@ libraries: api_id_override: cloudapiregistry.googleapis.com api_description_override: Cloud API Registry lets you discover, govern, use, and monitor Model Context Protocol (MCP) servers and tools provided by Google, or by your organization through Apigee API hub. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview + released_version: 0.14.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud API Registry API product_documentation_override: https://docs.cloud.google.com/api-registry/docs/overview - released_version: 0.14.0 - name: cloudbuild version: 3.97.0 apis: @@ -1036,9 +1036,9 @@ libraries: artifact_id: google-cloud-build codeowner_team: '@googleapis/aap-dpes' issue_tracker_override: https://issuetracker.google.com/savedsearches/5226584 + released_version: 3.97.0 name_pretty_override: Cloud Build product_documentation_override: https://cloud.google.com/cloud-build/ - released_version: 3.97.0 - name: cloudcommerceconsumerprocurement version: 0.93.0 apis: @@ -1046,9 +1046,9 @@ libraries: - path: google/cloud/commerce/consumer/procurement/v1alpha1 java: api_description_override: Find top solutions integrated with Google Cloud to accelerate your digital transformation. Scale and simplify procurement for your organization with online discovery, flexible purchasing, and fulfillment of enterprise-grade cloud solutions. + released_version: 0.93.0 name_pretty_override: Cloud Commerce Consumer Procurement product_documentation_override: https://cloud.google.com/marketplace/ - released_version: 0.93.0 - name: cloudcontrolspartner version: 0.59.0 apis: @@ -1056,9 +1056,9 @@ libraries: - path: google/cloud/cloudcontrolspartner/v1beta java: api_description_override: Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. + released_version: 0.59.0 name_pretty_override: Cloud Controls Partner API product_documentation_override: https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners - released_version: 0.59.0 - name: cloudquotas version: 0.63.0 apis: @@ -1073,9 +1073,9 @@ libraries: Cloud Quotas API provides GCP service consumers with management and observability for resource usage, quotas, and restrictions of the services they consume. + released_version: 0.63.0 name_pretty_override: Cloud Quotas API product_documentation_override: https://cloud.google.com/cloudquotas/docs/ - released_version: 0.63.0 - name: cloudsecuritycompliance version: 0.22.0 apis: @@ -1087,10 +1087,10 @@ libraries: api_id_override: cloudsecuritycompliance.googleapis.com api_description_override: Compliance Manager uses software-defined controls that let you assess support for multiple compliance programs and security requirements within a Google Cloud organization client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview + released_version: 0.22.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Security Compliance API product_documentation_override: https://cloud.google.com/security-command-center/docs/compliance-manager-overview - released_version: 0.22.0 - name: cloudsupport version: 0.79.0 apis: @@ -1098,9 +1098,9 @@ libraries: - path: google/cloud/support/v2beta java: api_description_override: Manages Google Cloud technical support cases for Customer Care support offerings. + released_version: 0.79.0 name_pretty_override: Google Cloud Support API product_documentation_override: https://cloud.google.com/support/docs/reference/support-api/ - released_version: 0.79.0 - name: commerceproducer version: 0.1.0 apis: @@ -1217,13 +1217,13 @@ libraries: - proto-google-common-protos-bom - proto-google-common-protos group_id: com.google.api.grpc + released_version: 2.74.0 library_type_override: OTHER name_pretty_override: Common Protos product_documentation_override: https://github.com/googleapis/api-common-protos transport_override: grpc skip_pom_updates: true skip_api_id: true - released_version: 2.74.0 - name: compute version: 1.105.0 apis: @@ -1240,9 +1240,9 @@ libraries: api_description_override: 'delivers virtual machines running in Google''s innovative data centers and worldwide fiber network. Compute Engine''s tooling and workflow support enable scaling from single instances to global, load-balanced cloud computing. Compute Engine''s VMs boot quickly, come with persistent disk storage, deliver consistent performance and are available in many configurations. ' excluded_poms: - grpc-google-cloud-compute-v1 + released_version: 1.105.0 name_pretty_override: Compute Engine product_documentation_override: https://cloud.google.com/compute/ - released_version: 1.105.0 - name: confidentialcomputing version: 0.81.0 apis: @@ -1256,9 +1256,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Protect data in-use with Confidential VMs, Confidential GKE, Confidential Dataproc, and Confidential Space. + released_version: 0.81.0 name_pretty_override: Confidential Computing API product_documentation_override: https://cloud.google.com/confidential-computing/ - released_version: 0.81.0 - name: configdelivery version: 0.29.0 apis: @@ -1274,11 +1274,11 @@ libraries: api_id_override: configdelivery.googleapis.com api_description_override: ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview + released_version: 0.29.0 library_type_override: GAPIC_AUTO name_pretty_override: Config Delivery API product_documentation_override: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/concepts/fleet-packages rest_documentation: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/reference/rest - released_version: 0.29.0 - name: connectgateway version: 0.47.0 apis: @@ -1287,10 +1287,10 @@ libraries: api_id_override: connectgateway.googleapis.com api_description_override: The Connect Gateway service allows connectivity from external parties to connected Kubernetes clusters. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview + released_version: 0.47.0 library_type_override: GAPIC_AUTO name_pretty_override: Connect Gateway API product_documentation_override: https://cloud.google.com/kubernetes-engine/enterprise/multicluster-management/gateway - released_version: 0.47.0 - name: contact-center-insights version: 2.95.0 apis: @@ -1298,9 +1298,9 @@ libraries: java: api_description_override: ' helps users detect and visualize patterns in their contact center data.' codeowner_team: '@googleapis/api-contact-center-insights' + released_version: 2.95.0 name_pretty_override: CCAI Insights product_documentation_override: https://cloud.google.com/dialogflow/priv/docs/insights/ - released_version: 2.95.0 - name: container version: 2.98.0 apis: @@ -1313,10 +1313,10 @@ libraries: api_description_override: is an enterprise-grade platform for containerized applications, including stateful and stateless, AI and ML, Linux and Windows, complex and simple web apps, API, and backend services. Leverage industry-first features like four-way auto-scaling and no-stress management. Optimize GPU and TPU provisioning, use integrated developer tools, and get multi-cluster support from SREs. codeowner_team: '@googleapis/cloud-sdk-java-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559777 + released_version: 2.98.0 name_pretty_override: Kubernetes Engine product_documentation_override: https://cloud.google.com/kubernetes-engine/ rest_documentation: https://cloud.google.com/kubernetes-engine/docs/reference/rest - released_version: 2.98.0 - name: containeranalysis version: 2.96.0 apis: @@ -1354,18 +1354,18 @@ libraries: api_description_override: is a service that provides vulnerability scanning and metadata storage for software artifacts. The service performs vulnerability scans on built software artifacts, such as the images in Container Registry, then stores the resulting metadata and makes it available for consumption through an API. The metadata may come from several sources, including vulnerability scanning, other Cloud services, and third-party providers. codeowner_team: '@googleapis/aap-dpes' issue_tracker_override: https://issuetracker.google.com/savedsearches/559777 + released_version: 2.96.0 name_pretty_override: Cloud Container Analysis product_documentation_override: https://cloud.google.com/container-registry/docs/container-analysis - released_version: 2.96.0 - name: contentwarehouse version: 0.91.0 apis: - path: google/cloud/contentwarehouse/v1 java: api_description_override: Document AI Warehouse is an integrated cloud-native GCP platform to store, search, organize, govern and analyze documents and their structured metadata. + released_version: 0.91.0 name_pretty_override: Document AI Warehouse product_documentation_override: https://cloud.google.com/document-warehouse/docs/overview - released_version: 0.91.0 - name: data-fusion version: 1.95.0 apis: @@ -1373,10 +1373,10 @@ libraries: - path: google/cloud/datafusion/v1beta1 java: api_description_override: is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines. + released_version: 1.95.0 name_pretty_override: Cloud Data Fusion product_documentation_override: https://cloud.google.com/data-fusion/docs rest_documentation: https://cloud.google.com/data-fusion/docs/reference/rest - released_version: 1.95.0 - name: databasecenter version: 0.16.0 apis: @@ -1385,10 +1385,10 @@ libraries: api_id_override: databasecenter.googleapis.com api_description_override: Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through Database Center's fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview + released_version: 0.16.0 library_type_override: GAPIC_AUTO name_pretty_override: Database Center API product_documentation_override: https://cloud.google.com/database-center/docs/overview - released_version: 0.16.0 - name: datacatalog version: 1.101.0 apis: @@ -1404,20 +1404,20 @@ libraries: - proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java java: api_description_override: is a fully managed and highly scalable data discovery and metadata management service. + released_version: 1.101.0 name_pretty_override: Data Catalog product_documentation_override: https://cloud.google.com/data-catalog - released_version: 1.101.0 - name: dataflow version: 0.99.0 apis: - path: google/dataflow/v1beta3 java: api_description_override: is a managed service for executing a wide variety of data processing patterns. + released_version: 0.99.0 name_pretty_override: Dataflow product_documentation_override: https://cloud.google.com/dataflow/docs rest_documentation: https://cloud.google.com/dataflow/docs/reference/rest rpc_documentation: https://cloud.google.com/dataflow/docs/reference/rpc - released_version: 0.99.0 - name: dataform version: 0.94.0 apis: @@ -1433,9 +1433,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Help analytics teams manage data inside BigQuery using SQL. + released_version: 0.94.0 name_pretty_override: Cloud Dataform product_documentation_override: https://cloud.google.com/dataform/docs - released_version: 0.94.0 - name: datalabeling version: 0.215.0 apis: @@ -1444,11 +1444,11 @@ libraries: - google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/it/ITSystemTest.java java: api_description_override: is a service that lets you work with human labelers to generate highly accurate labels for a collection of data that you can use to train your machine learning models. + released_version: 0.215.0 name_pretty_override: Data Labeling product_documentation_override: https://cloud.google.com/ai-platform/data-labeling/docs/ rest_documentation: https://cloud.google.com/ai-platform/data-labeling/docs/reference/rest rpc_documentation: https://cloud.google.com/ai-platform/data-labeling/docs/reference/rpc - released_version: 0.215.0 - name: datalineage version: 0.87.0 apis: @@ -1456,9 +1456,9 @@ libraries: - path: google/cloud/datacatalog/lineage/configmanagement/v1 java: api_description_override: Lineage is used to track data flows between assets over time. + released_version: 0.87.0 name_pretty_override: Data Lineage product_documentation_override: https://cloud.google.com/dataplex/docs/about-data-lineage - released_version: 0.87.0 - name: datamanager version: 0.16.0 apis: @@ -1468,11 +1468,11 @@ libraries: api_description_override: A unified ingestion API for data partners, agencies and advertisers to connect first-party data across Google advertising products. artifact_id: data-manager client_documentation_override: https://cloud.google.com/java/docs/reference/data-manager/latest/overview + released_version: 0.16.0 library_type_override: GAPIC_AUTO name_pretty_override: Data Manager API product_documentation_override: https://developers.google.com/data-manager rpc_documentation: https://developers.google.com/data-manager/api/reference/rpc - released_version: 0.16.0 - name: dataplex version: 1.93.0 apis: @@ -1483,11 +1483,11 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: provides intelligent data fabric that enables organizations to centrally manage, monitor, and govern their data across data lakes, data warehouses, and data marts with consistent controls, providing access to trusted data and powering analytics at scale. + released_version: 1.93.0 name_pretty_override: Cloud Dataplex product_documentation_override: https://cloud.google.com/dataplex rest_documentation: https://cloud.google.com/dataplex/docs/reference/rest rpc_documentation: https://cloud.google.com/dataplex/docs/reference/rpc - released_version: 1.93.0 - name: dataproc version: 4.92.0 apis: @@ -1499,11 +1499,11 @@ libraries: api_description_override: is a faster, easier, more cost-effective way to run Apache Spark and Apache Hadoop. codeowner_team: '@googleapis/api-dataproc' issue_tracker_override: https://issuetracker.google.com/savedsearches/559745 + released_version: 4.92.0 name_pretty_override: Dataproc product_documentation_override: https://cloud.google.com/dataproc rest_documentation: https://cloud.google.com/dataproc/docs/reference/rest rpc_documentation: https://cloud.google.com/dataproc/docs/reference/rpc - released_version: 4.92.0 - name: dataproc-metastore version: 2.96.0 apis: @@ -1524,11 +1524,11 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: is a fully managed, highly available, autoscaled, autohealing, OSS-native metastore service that greatly simplifies technical metadata management. Dataproc Metastore service is based on Apache Hive metastore and serves as a critical component towards enterprise data lakes. + released_version: 2.96.0 name_pretty_override: Dataproc Metastore product_documentation_override: https://cloud.google.com/dataproc-metastore/docs rest_documentation: https://cloud.google.com/dataproc-metastore/docs/reference/rest rpc_documentation: https://cloud.google.com/dataproc-metastore/docs/reference/rpc - released_version: 2.96.0 - name: datastore version: 3.3.0 apis: @@ -1548,11 +1548,11 @@ libraries: - grpc-google-cloud-datastore-v1 extra_versioned_modules: datastore-v1-proto-client issue_tracker_override: https://issuetracker.google.com/savedsearches/559768 + released_version: 3.3.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Datastore product_documentation_override: https://cloud.google.com/datastore recommended_package: com.google.cloud.datastore - released_version: 3.3.0 - name: datastream version: 1.94.0 apis: @@ -1564,10 +1564,10 @@ libraries: - path: google/cloud/datastream/v1alpha1 java: api_description_override: is a serverless and easy-to-use change data capture (CDC) and replication service. It allows you to synchronize data across heterogeneous databases and applications reliably, and with minimal latency and downtime. + released_version: 1.94.0 name_pretty_override: Datastream product_documentation_override: https://cloud.google.com/datastream/docs rest_documentation: https://cloud.google.com/datastream/docs/reference/rest - released_version: 1.94.0 - name: deploy version: 1.93.0 apis: @@ -1579,9 +1579,9 @@ libraries: java: api_description_override: is a service that automates delivery of your applications to a series of target environments in a defined sequence codeowner_team: '@googleapis/aap-dpes' + released_version: 1.93.0 name_pretty_override: Google Cloud Deploy product_documentation_override: https://cloud.google.com/deploy/docs - released_version: 1.93.0 - name: developerconnect version: 0.52.0 apis: @@ -1593,10 +1593,10 @@ libraries: api_id_override: developerconnect.googleapis.com api_description_override: Connect third-party source code management to Google client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview + released_version: 0.52.0 library_type_override: GAPIC_AUTO name_pretty_override: Developer Connect API product_documentation_override: https://cloud.google.com/developer-connect/docs/overview - released_version: 0.52.0 - name: developerknowledge version: 0.3.0 apis: @@ -1606,10 +1606,10 @@ libraries: api_description_override: The Developer Knowledge API provides access to Google's developer knowledge artifact_id: google-cloud-developer-knowledge client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-developer-knowledge/latest/overview + released_version: 0.3.0 library_type_override: GAPIC_AUTO name_pretty_override: Developer Knowledge API product_documentation_override: https://developers.google.com/knowledge - released_version: 0.3.0 - name: devicestreaming version: 0.35.0 apis: @@ -1618,10 +1618,10 @@ libraries: api_id_override: devicestreaming.googleapis.com api_description_override: The Cloud API for device streaming usage. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview + released_version: 0.35.0 library_type_override: GAPIC_AUTO name_pretty_override: Device Streaming API product_documentation_override: https://cloud.google.com/device-streaming/docs - released_version: 0.35.0 - name: dialogflow version: 4.101.0 apis: @@ -1694,9 +1694,9 @@ libraries: java: api_description_override: is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices. You can use it to build interfaces (such as chatbots and conversational IVR) that enable natural and rich interactions between your users and your business. Dialogflow Enterprise Edition users have access to Google Cloud Support and a service level agreement (SLA) for production deployments. issue_tracker_override: https://issuetracker.google.com/savedsearches/5300385 + released_version: 4.101.0 name_pretty_override: Dialogflow API product_documentation_override: https://cloud.google.com/dialogflow-enterprise/ - released_version: 4.101.0 - name: dialogflow-cx version: 0.106.0 apis: @@ -1711,11 +1711,11 @@ libraries: java: api_description_override: provides a new way of designing agents, taking a state machine approach to agent design. This gives you clear and explicit control over a conversation, a better end-user experience, and a better development workflow. api_shortname_override: dialogflow-cx + released_version: 0.106.0 name_pretty_override: Dialogflow CX product_documentation_override: https://cloud.google.com/dialogflow/cx/docs rest_documentation: https://cloud.google.com/dialogflow/cx/docs/reference/rest rpc_documentation: https://cloud.google.com/dialogflow/cx/docs/reference/rpc - released_version: 0.106.0 - name: discoveryengine version: 0.91.0 apis: @@ -1733,9 +1733,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: A Cloud API that offers search and recommendation discoverability for documents from different industry verticals (e.g. media, retail, etc.). + released_version: 0.91.0 name_pretty_override: Discovery Engine API product_documentation_override: https://cloud.google.com/discovery-engine/media/docs - released_version: 0.91.0 - name: distributedcloudedge version: 0.92.0 apis: @@ -1747,9 +1747,9 @@ libraries: api_id_override: edgecontainer.googleapis.com api_description_override: Google Distributed Cloud Edge allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. api_shortname_override: distributedcloudedge + released_version: 0.92.0 name_pretty_override: Google Distributed Cloud Edge product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/ - released_version: 0.92.0 - name: dlp version: 3.99.0 apis: @@ -1792,11 +1792,11 @@ libraries: java: api_description_override: provides programmatic access to a powerful detection engine for personally identifiable information and other privacy-sensitive data in unstructured data streams, like text blocks and images. issue_tracker_override: https://issuetracker.google.com/savedsearches/5548083 + released_version: 3.99.0 name_pretty_override: Cloud Data Loss Prevention product_documentation_override: https://cloud.google.com/dlp/docs/ rest_documentation: https://cloud.google.com/dlp/docs/reference/rest rpc_documentation: https://cloud.google.com/dlp/docs/reference/rpc - released_version: 3.99.0 - name: dms version: 2.94.0 apis: @@ -1804,10 +1804,10 @@ libraries: java: api_id_override: datamigration.googleapis.com api_description_override: makes it easier for you to migrate your data to Google Cloud. This service helps you lift and shift your MySQL and PostgreSQL workloads into Cloud SQL. + released_version: 2.94.0 name_pretty_override: Database Migration Service product_documentation_override: https://cloud.google.com/database-migration/docs rest_documentation: https://cloud.google.com/database-migration/docs/reference/rest - released_version: 2.94.0 - name: document-ai version: 2.99.0 apis: @@ -1822,9 +1822,9 @@ libraries: java: api_description_override: allows developers to unlock insights from your documents with machine learning. issue_tracker_override: https://issuetracker.google.com/savedsearches/559755 + released_version: 2.99.0 name_pretty_override: Document AI product_documentation_override: https://cloud.google.com/compute/docs/documentai/ - released_version: 2.99.0 - name: domains version: 1.92.0 apis: @@ -1833,9 +1833,9 @@ libraries: - path: google/cloud/domains/v1alpha2 java: api_description_override: allows you to register and manage domains by using Cloud Domains. + released_version: 1.92.0 name_pretty_override: Cloud Domains product_documentation_override: https://cloud.google.com/domains - released_version: 1.92.0 - name: edgenetwork version: 0.63.0 apis: @@ -1845,18 +1845,18 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Network management API for Distributed Cloud Edge. + released_version: 0.63.0 name_pretty_override: Distributed Cloud Edge Network API product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/docs/overview - released_version: 0.63.0 - name: enterpriseknowledgegraph version: 0.91.0 apis: - path: google/cloud/enterpriseknowledgegraph/v1 java: api_description_override: Enterprise Knowledge Graph organizes siloed information into organizational knowledge, which involves consolidating, standardizing, and reconciling data in an efficient and useful way. + released_version: 0.91.0 name_pretty_override: Enterprise Knowledge Graph product_documentation_override: https://cloud.google.com/enterprise-knowledge-graph/docs/overview - released_version: 0.91.0 - name: errorreporting version: 0.216.0-beta apis: @@ -1908,19 +1908,19 @@ libraries: java: api_description_override: 'counts, analyzes, and aggregates the crashes in your running cloud services. A centralized error management interface displays the results with sorting and filtering capabilities. A dedicated view shows the error details: time chart, occurrences, affected user count, first- and last-seen dates and a cleaned exception stack trace. Opt in to receive email and mobile alerts on new errors.' issue_tracker_override: https://issuetracker.google.com/savedsearches/559780 + released_version: 0.216.0-beta name_pretty_override: Error Reporting product_documentation_override: https://cloud.google.com/error-reporting billing_not_required: true - released_version: 0.216.0-beta - name: essential-contacts version: 2.95.0 apis: - path: google/cloud/essentialcontacts/v1 java: api_description_override: helps you customize who receives notifications by providing your own list of contacts in many Google Cloud services. + released_version: 2.95.0 name_pretty_override: Essential Contacts API product_documentation_override: https://cloud.google.com/resource-manager/docs/managing-notification-contacts/ - released_version: 2.95.0 - name: eventarc version: 1.95.0 apis: @@ -1932,11 +1932,11 @@ libraries: java: api_description_override: lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. Eventarc requires no infrastructure management, you can optimize productivity and costs while building a modern, event-driven solution. codeowner_team: '@googleapis/aap-dpes' + released_version: 1.95.0 name_pretty_override: Eventarc product_documentation_override: https://cloud.google.com/eventarc/docs rest_documentation: https://cloud.google.com/eventarc/docs/reference/rest rpc_documentation: https://cloud.google.com/eventarc/docs/reference/rpc - released_version: 1.95.0 - name: eventarc-publishing version: 0.95.0 apis: @@ -1944,11 +1944,11 @@ libraries: java: api_id_override: eventarc-publishing.googleapis.com api_description_override: lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. + released_version: 0.95.0 name_pretty_override: Eventarc Publishing product_documentation_override: https://cloud.google.com/eventarc/docs rest_documentation: https://cloud.google.com/eventarc/docs/reference/rest rpc_documentation: https://cloud.google.com/eventarc/docs/reference/rpc - released_version: 0.95.0 - name: filestore version: 1.96.0 apis: @@ -1964,10 +1964,10 @@ libraries: generate_proto_classes: true java: api_description_override: instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters. + released_version: 1.96.0 name_pretty_override: Cloud Filestore API product_documentation_override: https://cloud.google.com/filestore/docs rest_documentation: https://cloud.google.com/filestore/docs/reference/rest - released_version: 1.96.0 - name: financialservices version: 0.36.0 apis: @@ -1979,10 +1979,10 @@ libraries: api_id_override: financialservices.googleapis.com api_description_override: Google Cloud's Anti Money Laundering AI (AML AI) product is an API that scores AML risk. Use it to identify more risk, more defensibly, with fewer false positives and reduced time per review. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview + released_version: 0.36.0 library_type_override: GAPIC_AUTO name_pretty_override: Financial Services API product_documentation_override: https://cloud.google.com/financial-services/anti-money-laundering/docs/concepts/overview - released_version: 0.36.0 - name: firestore version: 3.45.0 apis: @@ -2043,13 +2043,13 @@ libraries: - google-cloud-firestore - google-cloud-firestore-bom issue_tracker_override: https://issuetracker.google.com/savedsearches/5337669 + released_version: 3.45.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Firestore product_documentation_override: https://cloud.google.com/firestore recommended_package: com.google.cloud.firestore transport_override: grpc skip_pom_updates: true - released_version: 3.45.0 - name: functions version: 2.97.0 apis: @@ -2076,11 +2076,11 @@ libraries: java: api_description_override: is a scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.97.0 name_pretty_override: Cloud Functions product_documentation_override: https://cloud.google.com/functions rest_documentation: https://cloud.google.com/functions/docs/reference/rest rpc_documentation: https://cloud.google.com/functions/docs/reference/rpc - released_version: 2.97.0 - name: gdchardwaremanagement version: 0.50.0 apis: @@ -2092,11 +2092,11 @@ libraries: api_id_override: gdchardwaremanagement.googleapis.com api_description_override: Google Distributed Cloud connected allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview + released_version: 0.50.0 library_type_override: GAPIC_AUTO name_pretty_override: GDC Hardware Management API product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/docs rpc_documentation: https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/hardware/rpc - released_version: 0.50.0 - name: geminidataanalytics version: 0.23.0 apis: @@ -2112,11 +2112,11 @@ libraries: api_id_override: geminidataanalytics.googleapis.com api_description_override: Use Conversational Analytics API to build an artificial intelligence (AI)-powered chat interface, or data agent, that answers questions about structured data using natural language. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview + released_version: 0.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Data Analytics API with Gemini product_documentation_override: https://cloud.google.com/gemini/docs/conversational-analytics-api/overview rpc_documentation: https://cloud.google.com/gemini/docs/conversational-analytics-api/reference - released_version: 0.23.0 - name: gke-backup version: 0.94.0 apis: @@ -2129,18 +2129,18 @@ libraries: api_id_override: gkebackup.googleapis.com api_description_override: is a service for backing up and restoring workloads in GKE. api_shortname_override: gke-backup + released_version: 0.94.0 name_pretty_override: Backup for GKE product_documentation_override: 'https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/concepts/backup-for-gke ' - released_version: 0.94.0 - name: gke-connect-gateway version: 0.96.0 apis: - path: google/cloud/gkeconnect/gateway/v1beta1 java: api_description_override: builds on the power of fleets to let Anthos users connect to and run commands against registered Anthos clusters in a simple, consistent, and secured way, whether the clusters are on Google Cloud, other public clouds, or on premises, and makes it easier to automate DevOps processes across all your clusters. + released_version: 0.96.0 name_pretty_override: Connect Gateway API product_documentation_override: https://cloud.google.com/anthos/multicluster-management/gateway/ - released_version: 0.96.0 - name: gke-multi-cloud version: 0.94.0 apis: @@ -2149,9 +2149,9 @@ libraries: api_id_override: gkemulticloud.googleapis.com api_description_override: enables you to provision and manage GKE clusters running on AWS and Azure infrastructure through a centralized Google Cloud backed control plane. api_shortname_override: gke-multi-cloud + released_version: 0.94.0 name_pretty_override: Anthos Multicloud product_documentation_override: https://cloud.google.com/anthos/clusters/docs/multi-cloud - released_version: 0.94.0 - name: gkehub version: 1.95.0 apis: @@ -2181,9 +2181,9 @@ libraries: samples: false java: api_description_override: provides a unified way to work with Kubernetes clusters as part of Anthos, extending GKE to work in multiple environments. You have consistent, unified, and secure infrastructure, cluster, and container management, whether you're using Anthos on Google Cloud (with traditional GKE), hybrid cloud, or multiple public clouds. + released_version: 1.95.0 name_pretty_override: GKE Hub API product_documentation_override: https://cloud.google.com/anthos/gke/docs/ - released_version: 1.95.0 - name: gkerecommender version: 0.15.0 apis: @@ -2192,10 +2192,10 @@ libraries: api_id_override: gkerecommender.googleapis.com api_description_override: lets you analyze the performance and cost-efficiency of your inference workloads, and make data-driven decisions about resource allocation and model deployment strategies. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview + released_version: 0.15.0 library_type_override: GAPIC_AUTO name_pretty_override: GKE Recommender API product_documentation_override: https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference-quickstart - released_version: 0.15.0 - name: google-cloud-java version: 1.89.0 skip_generate: true @@ -2231,10 +2231,10 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/grafeas/latest/overview codeowner_team: '@googleapis/aap-dpes' group_id: io.grafeas + released_version: 2.96.0 name_pretty_override: Grafeas product_documentation_override: https://grafeas.io skip_pom_updates: true - released_version: 2.96.0 - name: gsuite-addons version: 2.95.0 apis: @@ -2289,9 +2289,9 @@ libraries: samples: false java: api_description_override: are customized applications that integrate with Google Workspace productivity applications. + released_version: 2.95.0 name_pretty_override: Google Workspace Add-ons API product_documentation_override: https://developers.google.com/workspace/add-ons/overview - released_version: 2.95.0 - name: health version: 0.4.0 apis: @@ -2300,11 +2300,11 @@ libraries: api_id_override: health.googleapis.com api_description_override: The Google Health API lets you view and manage health and fitness metrics and measurement data. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-health/latest/overview + released_version: 0.4.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Health API product_documentation_override: https://developers.google.com/health/api rpc_documentation: https://developers.google.com/health/api/reference/rpc - released_version: 0.4.0 - name: hypercomputecluster version: 0.15.0 apis: @@ -2320,10 +2320,10 @@ libraries: api_id_override: hypercomputecluster.googleapis.com api_description_override: simplifies cluster management across compute, network, and storage client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview + released_version: 0.15.0 library_type_override: GAPIC_AUTO name_pretty_override: Cluster Director API product_documentation_override: https://cloud.google.com/blog/products/compute/managed-slurm-and-other-cluster-director-enhancements - released_version: 0.15.0 - name: iam version: 1.69.0 apis: @@ -2374,11 +2374,11 @@ libraries: - google-iam-policy - proto-google-iam-v1 group_id: com.google.api.grpc + released_version: 1.69.0 library_type_override: OTHER name_pretty_override: IAM product_documentation_override: https://cloud.google.com/iam skip_api_id: true - released_version: 1.69.0 - name: iam-admin version: 3.90.0 apis: @@ -2388,9 +2388,9 @@ libraries: api_description_override: you to manage your Service Accounts and IAM bindings. api_shortname_override: iam-admin artifact_id: google-iam-admin + released_version: 3.90.0 name_pretty_override: IAM Admin API product_documentation_override: https://cloud.google.com/iam/docs/apis - released_version: 3.90.0 - name: iam-policy version: 1.92.0 apis: @@ -2432,9 +2432,9 @@ libraries: - proto-google-iam-v1-bom - google-iam-policy - proto-google-iam-v1 + released_version: 1.92.0 name_pretty_override: Cloud IAM Policy product_documentation_override: n/a - released_version: 1.92.0 - name: iamcredentials version: 2.95.0 apis: @@ -2442,10 +2442,10 @@ libraries: java: api_description_override: creates short-lived, limited-privilege credentials for IAM service accounts. issue_tracker_override: https://issuetracker.google.com/issues/new?component=187161 + released_version: 2.95.0 name_pretty_override: IAM Service Account Credentials API product_documentation_override: https://cloud.google.com/iam/credentials/reference/rest/ billing_not_required: true - released_version: 2.95.0 - name: iap version: 0.51.0 apis: @@ -2454,19 +2454,19 @@ libraries: api_id_override: iap.googleapis.com api_description_override: Controls access to cloud applications running on Google Cloud Platform. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-iap/latest/overview + released_version: 0.51.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Identity-Aware Proxy API product_documentation_override: https://cloud.google.com/iap - released_version: 0.51.0 - name: ids version: 1.94.0 apis: - path: google/cloud/ids/v1 java: api_description_override: ' monitors your networks, and it alerts you when it detects malicious activity. Cloud IDS is powered by Palo Alto Networks.' + released_version: 1.94.0 name_pretty_override: Intrusion Detection System product_documentation_override: https://cloud.google.com/intrusion-detection-system/docs - released_version: 1.94.0 - name: infra-manager version: 0.72.0 apis: @@ -2478,9 +2478,9 @@ libraries: java: api_id_override: config.googleapis.com api_description_override: Creates and manages Google Cloud Platform resources and infrastructure. + released_version: 0.72.0 name_pretty_override: Infrastructure Manager API product_documentation_override: https://cloud.google.com/infrastructure-manager/docs/overview - released_version: 0.72.0 - name: iot version: 2.95.0 apis: @@ -2488,9 +2488,9 @@ libraries: java: api_description_override: is a complete set of tools to connect, process, store, and analyze data both at the edge and in the cloud. The platform consists of scalable, fully-managed cloud services; an integrated software stack for edge/on-premises computing with machine learning capabilities for all your IoT needs. issue_tracker_override: https://issuetracker.google.com/issues?q=status:open%20componentid:310170 + released_version: 2.95.0 name_pretty_override: Cloud Internet of Things (IoT) Core product_documentation_override: https://cloud.google.com/iot - released_version: 2.95.0 - name: java-shopping-merchant-issue-resolution version: 1.23.0 apis: @@ -2501,10 +2501,10 @@ libraries: api_description_override: Programatically manage your Merchant Issues artifact_id: google-shopping-merchant-issue-resolution client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Issue Resolution API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: java-shopping-merchant-order-tracking version: 1.23.0 apis: @@ -2515,10 +2515,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center Accounts artifact_id: google-shopping-merchant-order-tracking client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Order Tracking API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: kms version: 2.98.0 apis: @@ -2742,20 +2742,20 @@ libraries: java: api_description_override: a cloud-hosted key management service that lets you manage cryptographic keys for your cloud services the same way you do on-premises. You can generate, use, rotate, and destroy AES256, RSA 2048, RSA 3072, RSA 4096, EC P256, and EC P384 cryptographic keys. Cloud KMS is integrated with Cloud IAM and Cloud Audit Logging so that you can manage permissions on individual keys and monitor how these are used. Use Cloud KMS to protect secrets and other sensitive data that you need to store in Google Cloud Platform. issue_tracker_override: https://issuetracker.google.com/savedsearches/5264932 + released_version: 2.98.0 name_pretty_override: Cloud Key Management Service product_documentation_override: https://cloud.google.com/kms - released_version: 2.98.0 - name: kmsinventory version: 0.84.0 apis: - path: google/cloud/kms/inventory/v1 java: api_description_override: KMS Inventory API. + released_version: 0.84.0 name_pretty_override: KMS Inventory API product_documentation_override: https://cloud.google.com/kms/docs/ rest_documentation: https://cloud.google.com/kms/docs/reference/rest rpc_documentation: https://cloud.google.com/kms/docs/reference/rpc - released_version: 0.84.0 - name: language version: 2.96.0 apis: @@ -2765,11 +2765,11 @@ libraries: java: api_description_override: provides natural language understanding technologies to developers, including sentiment analysis, entity analysis, entity sentiment analysis, content classification, and syntax analysis. This API is part of the larger Cloud Machine Learning API family. issue_tracker_override: https://issuetracker.google.com/savedsearches/559753 + released_version: 2.96.0 name_pretty_override: Natural Language product_documentation_override: https://cloud.google.com/natural-language/docs/ rest_documentation: https://cloud.google.com/natural-language/docs/reference/rest rpc_documentation: https://cloud.google.com/natural-language/docs/reference/rpc - released_version: 2.96.0 - name: licensemanager version: 0.28.0 apis: @@ -2781,10 +2781,10 @@ libraries: api_id_override: licensemanager.googleapis.com api_description_override: License Manager is a tool to manage and track third-party licenses on Google Cloud. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview + released_version: 0.28.0 library_type_override: GAPIC_AUTO name_pretty_override: License Manager API product_documentation_override: https://cloud.google.com/compute/docs/instances/windows/ms-licensing - released_version: 0.28.0 - name: life-sciences version: 0.97.0 apis: @@ -2794,11 +2794,11 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a suite of services and tools for managing, processing, and transforming life sciences data. + released_version: 0.97.0 name_pretty_override: Cloud Life Sciences product_documentation_override: https://cloud.google.com/life-sciences/docs rest_documentation: https://cloud.google.com/life-sciences/docs/reference/rest rpc_documentation: https://cloud.google.com/life-sciences/docs/reference/rpc - released_version: 0.97.0 - name: locationfinder version: 0.20.0 apis: @@ -2807,11 +2807,11 @@ libraries: api_id_override: locationfinder.googleapis.com api_description_override: Cloud Location Finder is a public API that offers a repository of all Google Cloud and Google Distributed Cloud locations, as well as cloud locations for other cloud providers. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview + released_version: 0.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Location Finder API product_documentation_override: https://cloud.google.com/location-finder/docs/overview rpc_documentation: https://cloud.google.com/locationfinder/docs/reference/rest - released_version: 0.20.0 - name: logging version: 3.36.0 apis: @@ -2971,12 +2971,12 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-logging/latest/history codeowner_team: '@googleapis/cloud-sdk-java-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559764 + released_version: 3.36.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Logging product_documentation_override: https://cloud.google.com/logging/docs recommended_package: com.google.cloud.logging transport_override: grpc - released_version: 3.36.0 - name: lustre version: 0.35.0 apis: @@ -2988,10 +2988,10 @@ libraries: api_id_override: lustre.googleapis.com api_description_override: Google Cloud Managed Lustre delivers a high-performance, fully managed parallel file system optimized for AI and HPC applications. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-lustre/latest/overview + released_version: 0.35.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Cloud Managed Lustre API product_documentation_override: https://cloud.google.com/managed-lustre/docs - released_version: 0.35.0 - name: maintenance version: 0.29.0 apis: @@ -3007,11 +3007,11 @@ libraries: api_id_override: maintenance.googleapis.com api_description_override: The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/overview + released_version: 0.29.0 library_type_override: GAPIC_AUTO name_pretty_override: Maintenance API product_documentation_override: https://cloud.google.com/unified-maintenance/docs/overview rpc_documentation: https://cloud.google.com/unified-maintenance/docs/reference/rpc - released_version: 0.29.0 - name: managed-identities version: 1.93.0 apis: @@ -3019,9 +3019,9 @@ libraries: java: api_id_override: managedidentities.googleapis.com api_description_override: is a highly available, hardened Google Cloud service running actual Microsoft AD that enables you to manage authentication and authorization for your AD-dependent workloads, automate AD server maintenance and security configuration, and connect your on-premises AD domain to the cloud. + released_version: 1.93.0 name_pretty_override: Managed Service for Microsoft Active Directory product_documentation_override: https://cloud.google.com/managed-microsoft-ad/ - released_version: 1.93.0 - name: managedkafka version: 0.51.0 apis: @@ -3033,10 +3033,10 @@ libraries: api_id_override: managedkafka.googleapis.com api_description_override: Manage Apache Kafka clusters and resources. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/latest/overview + released_version: 0.51.0 library_type_override: GAPIC_AUTO name_pretty_override: Managed Service for Apache Kafka product_documentation_override: https://cloud.google.com/managed-kafka - released_version: 0.51.0 - name: maps-addressvalidation version: 0.89.0 apis: @@ -3046,9 +3046,9 @@ libraries: api_description_override: The Address Validation API allows developers to verify the accuracy of addresses. Given an address, it returns information about the correctness of the components of the parsed address, a geocode, and a verdict on the deliverability of the parsed address. api_shortname_override: maps-addressvalidation artifact_id: google-maps-addressvalidation + released_version: 0.89.0 name_pretty_override: Address Validation API product_documentation_override: https://developers.google.com/maps/documentation/address-validation/ - released_version: 0.89.0 - name: maps-area-insights version: 0.46.0 apis: @@ -3059,10 +3059,10 @@ libraries: api_shortname_override: maps-area-insights artifact_id: google-maps-area-insights client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview + released_version: 0.46.0 library_type_override: GAPIC_AUTO name_pretty_override: Places Insights API product_documentation_override: https://developers.google.com/maps/documentation/places-insights - released_version: 0.46.0 - name: maps-fleetengine version: 0.42.0 apis: @@ -3073,10 +3073,10 @@ libraries: api_shortname_override: maps-fleetengine artifact_id: google-maps-fleetengine client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview + released_version: 0.42.0 library_type_override: GAPIC_AUTO name_pretty_override: Local Rides and Deliveries API product_documentation_override: https://developers.google.com/maps/documentation/transportation-logistics/mobility - released_version: 0.42.0 - name: maps-fleetengine-delivery version: 0.42.0 apis: @@ -3087,10 +3087,10 @@ libraries: api_shortname_override: maps-fleetengine-delivery artifact_id: google-maps-fleetengine-delivery client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview + released_version: 0.42.0 library_type_override: GAPIC_AUTO name_pretty_override: Last Mile Fleet Solution Delivery API product_documentation_override: https://developers.google.com/maps/documentation/transportation-logistics/mobility - released_version: 0.42.0 - name: maps-geocode version: 0.7.0 apis: @@ -3100,10 +3100,10 @@ libraries: api_description_override: The Geocoding API is a service that accepts a place as an address, latitude and longitude coordinates, or Place ID. artifact_id: google-maps-geocode client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-geocode/latest/overview + released_version: 0.7.0 library_type_override: GAPIC_AUTO name_pretty_override: Geocoding API product_documentation_override: https://developers.google.com/maps/documentation/geocoding/overview - released_version: 0.7.0 - name: maps-isochrones version: 0.1.0 apis: @@ -3121,10 +3121,10 @@ libraries: api_description_override: The Map Management API is a RESTful service that accepts HTTP requests for map styling data through a variety of methods. It returns formatted configuration data about map styling resources so that you can programmatically manage your Cloud-based map styles. artifact_id: google-maps-mapmanagement client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview + released_version: 0.4.0 library_type_override: GAPIC_AUTO name_pretty_override: Map Management API product_documentation_override: https://developers.google.com/maps/documentation/mapmanagement/overview - released_version: 0.4.0 - name: maps-mapsplatformdatasets version: 0.84.0 apis: @@ -3136,9 +3136,9 @@ libraries: that they can use to enrich their experience of Maps Platform solutions (e.g. styling, routing). api_shortname_override: maps-mapsplatformdatasets artifact_id: google-maps-mapsplatformdatasets + released_version: 0.84.0 name_pretty_override: Maps Platform Datasets API product_documentation_override: https://developers.google.com/maps/documentation - released_version: 0.84.0 - name: maps-navconnect version: 0.1.0 apis: @@ -3158,9 +3158,9 @@ libraries: api_description_override: The Places API allows developers to access a variety of search and retrieval endpoints for a Place. api_shortname_override: maps-places artifact_id: google-maps-places + released_version: 0.66.0 name_pretty_override: Places API (New) product_documentation_override: https://developers.google.com/maps/documentation/places/web-service/ - released_version: 0.66.0 - name: maps-routeoptimization version: 0.53.0 apis: @@ -3170,12 +3170,12 @@ libraries: api_description_override: The Route Optimization API assigns tasks and routes to a vehicle fleet, optimizing against the objectives and constraints that you supply for your transportation goals. artifact_id: google-maps-routeoptimization client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview + released_version: 0.53.0 library_type_override: GAPIC_AUTO name_pretty_override: Route Optimization API product_documentation_override: https://developers.google.com/maps/documentation/route-optimization rest_documentation: https://developers.google.com/maps/documentation/route-optimization/reference/rest/ rpc_documentation: https://developers.google.com/maps/documentation/route-optimization/reference/rpc - released_version: 0.53.0 - name: maps-routing version: 1.80.0 apis: @@ -3185,9 +3185,9 @@ libraries: api_description_override: Routes API is the next generation, performance optimized version of the existing Directions API and Distance Matrix API. It helps you find the ideal route from A to Z, calculates ETAs and distances for matrices of origin and destination locations, and also offers new features. api_shortname_override: maps-routing artifact_id: google-maps-routing + released_version: 1.80.0 name_pretty_override: Routes API product_documentation_override: https://developers.google.com/maps/documentation/routes - released_version: 1.80.0 - name: maps-solar version: 0.54.0 apis: @@ -3198,11 +3198,11 @@ libraries: api_shortname_override: maps-solar artifact_id: google-maps-solar client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-solar/latest/overview + released_version: 0.54.0 library_type_override: GAPIC_AUTO name_pretty_override: Solar API product_documentation_override: https://developers.google.com/maps/documentation/solar/overview rpc_documentation: https://developers.google.com/maps/documentation/solar/reference/rest - released_version: 0.54.0 - name: marketingplatformadminapi version: 0.44.0 apis: @@ -3215,20 +3215,20 @@ libraries: artifact_id: admin client_documentation_override: https://cloud.google.com/java/docs/reference/admin/latest/overview group_id: com.google.ads-marketingplatform + released_version: 0.44.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Marketing Platform Admin API product_documentation_override: https://developers.google.com/analytics/devguides/config/gmp/v1 - released_version: 0.44.0 - name: mediatranslation version: 0.101.0 apis: - path: google/cloud/mediatranslation/v1beta1 java: api_description_override: provides enterprise quality translation from/to various media types. + released_version: 0.101.0 name_pretty_override: Media Translation API product_documentation_override: https://cloud.google.com/ billing_not_required: true - released_version: 0.101.0 - name: meet version: 0.62.0 apis: @@ -3236,9 +3236,9 @@ libraries: - path: google/apps/meet/v2beta java: api_description_override: The Google Meet REST API lets you create and manage meetings for Google Meet and offers entry points to your users directly from your app + released_version: 0.62.0 name_pretty_override: Google Meet API product_documentation_override: https://developers.google.com/meet/api/guides/overview - released_version: 0.62.0 - name: memcache version: 2.95.0 apis: @@ -3252,10 +3252,10 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a fully-managed in-memory data store service for Memcache. + released_version: 2.95.0 name_pretty_override: Cloud Memcache product_documentation_override: https://cloud.google.com/memorystore/ billing_not_required: true - released_version: 2.95.0 - name: migrationcenter version: 0.77.0 apis: @@ -3265,9 +3265,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Google Cloud Migration Center is a unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud + released_version: 0.77.0 name_pretty_override: Migration Center API product_documentation_override: https://cloud.google.com/migration-center/docs/migration-center-overview - released_version: 0.77.0 - name: modelarmor version: 0.36.0 apis: @@ -3283,10 +3283,10 @@ libraries: api_id_override: modelarmor.googleapis.com api_description_override: Model Armor helps you protect against risks like prompt injection, harmful content, and data leakage in generative AI applications by letting you define policies that filter user prompts and model responses. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/overview + released_version: 0.36.0 library_type_override: GAPIC_AUTO name_pretty_override: Model Armor API product_documentation_override: https://cloud.google.com/security-command-center/docs/model-armor-overview - released_version: 0.36.0 - name: monitoring version: 3.96.0 apis: @@ -3334,9 +3334,9 @@ libraries: java: api_description_override: collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation. Using the BindPlane service, you can also collect this data from over 150 common application components, on-premise systems, and hybrid cloud systems. Stackdriver ingests that data and generates insights via dashboards, charts, and alerts. BindPlane is included with your Google Cloud project at no additional cost. issue_tracker_override: https://issuetracker.google.com/savedsearches/559785 + released_version: 3.96.0 name_pretty_override: Stackdriver Monitoring product_documentation_override: https://cloud.google.com/monitoring/docs - released_version: 3.96.0 - name: monitoring-dashboards version: 2.97.0 apis: @@ -3350,9 +3350,9 @@ libraries: api_description_override: are one way for you to view and analyze metric data. The Cloud Console provides predefined dashboards that require no setup or configuration. You can also define custom dashboards. With custom dashboards, you have complete control over the charts that are displayed and their configuration. api_shortname_override: monitoring-dashboards artifact_id: google-cloud-monitoring-dashboard + released_version: 2.97.0 name_pretty_override: Monitoring Dashboards product_documentation_override: https://cloud.google.com/monitoring/charts/dashboards - released_version: 2.97.0 - name: monitoring-metricsscope version: 0.89.0 apis: @@ -3361,9 +3361,9 @@ libraries: api_id_override: monitoring.googleapis.com api_description_override: The metrics scope defines the set of Google Cloud projects whose metrics the current Google Cloud project can access. api_shortname_override: monitoring-metricsscope + released_version: 0.89.0 name_pretty_override: Monitoring Metrics Scopes product_documentation_override: https://cloud.google.com/monitoring/api/ref_v3/rest/v1/locations.global.metricsScopes - released_version: 0.89.0 - name: netapp version: 0.74.0 apis: @@ -3373,9 +3373,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability. + released_version: 0.74.0 name_pretty_override: NetApp API product_documentation_override: https://cloud.google.com/netapp/volumes/docs/discover/overview - released_version: 0.74.0 - name: network-management version: 1.96.0 apis: @@ -3629,9 +3629,9 @@ libraries: public void testIamPermissionsTest() throws Exception { java: api_description_override: provides a collection of network performance monitoring and diagnostic capabilities. + released_version: 1.96.0 name_pretty_override: Network Management API product_documentation_override: https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/reference/networkmanagement/rest/ - released_version: 1.96.0 - name: network-security version: 0.98.0 apis: @@ -3647,9 +3647,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: n/a + released_version: 0.98.0 name_pretty_override: Network Security API product_documentation_override: https://cloud.google.com/traffic-director/docs/reference/network-security/rest - released_version: 0.98.0 - name: networkconnectivity version: 1.94.0 apis: @@ -3666,9 +3666,9 @@ libraries: - path: google/cloud/networkconnectivity/v1alpha1 java: api_description_override: Google's suite of products that provide enterprise connectivity from your on-premises network or from another cloud provider to your Virtual Private Cloud (VPC) network + released_version: 1.94.0 name_pretty_override: Network Connectivity Center product_documentation_override: https://cloud.google.com/network-connectivity/docs - released_version: 1.94.0 - name: networkservices version: 0.51.0 apis: @@ -3681,10 +3681,10 @@ libraries: api_id_override: networkservices.googleapis.com api_description_override: Google Cloud offers a broad portfolio of networking services built on top of planet-scale infrastructure that leverages automation, advanced AI, and programmability, enabling enterprises to connect, scale, secure, modernize and optimize their infrastructure. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/overview + released_version: 0.51.0 library_type_override: GAPIC_AUTO name_pretty_override: Network Services API product_documentation_override: https://cloud.google.com/products/networking - released_version: 0.51.0 - name: notebooks version: 1.93.0 apis: @@ -3705,20 +3705,20 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production. Users can create instances running JupyterLab that come pre-installed with the latest data science and machine learning frameworks in a single click. + released_version: 1.93.0 name_pretty_override: AI Platform Notebooks product_documentation_override: https://cloud.google.com/ai-platform-notebooks - released_version: 1.93.0 - name: optimization version: 1.93.0 apis: - path: google/cloud/optimization/v1 java: api_description_override: is a managed routing service that takes your list of orders, vehicles, constraints, and objectives and returns the most efficient plan for your entire fleet in near real-time. + released_version: 1.93.0 name_pretty_override: Cloud Fleet Routing product_documentation_override: https://cloud.google.com/optimization/docs rest_documentation: https://cloud.google.com/optimization/docs/reference/rest rpc_documentation: https://cloud.google.com/optimization/docs/reference/rpc - released_version: 1.93.0 - name: oracledatabase version: 0.44.0 apis: @@ -3730,10 +3730,10 @@ libraries: api_id_override: oracledatabase.googleapis.com api_description_override: The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview + released_version: 0.44.0 library_type_override: GAPIC_AUTO name_pretty_override: Oracle Database@Google Cloud API product_documentation_override: https://cloud.google.com/oracle/database/docs - released_version: 0.44.0 - name: orchestration-airflow version: 1.95.0 apis: @@ -3743,11 +3743,11 @@ libraries: api_id_override: composer.googleapis.com api_description_override: is a managed Apache Airflow service that helps you create, schedule, monitor and manage workflows. Cloud Composer automation helps you create Airflow environments quickly and use Airflow-native tools, such as the powerful Airflow web interface and command line tools, so you can focus on your workflows and not your infrastructure. api_shortname_override: orchestration-airflow + released_version: 1.95.0 name_pretty_override: Cloud Composer product_documentation_override: https://cloud.google.com/composer/docs rest_documentation: https://cloud.google.com/composer/docs/reference/rest rpc_documentation: https://cloud.google.com/composer/docs/reference/rpc - released_version: 1.95.0 - name: orgpolicy version: 2.95.0 apis: @@ -3761,9 +3761,9 @@ libraries: java: api_description_override: n/a client_documentation_override: https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview + released_version: 2.95.0 name_pretty_override: Cloud Organization Policy product_documentation_override: n/a - released_version: 2.95.0 - name: os-config version: 2.97.0 apis: @@ -3773,10 +3773,10 @@ libraries: java: api_id_override: osconfig.googleapis.com api_description_override: provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. + released_version: 2.97.0 name_pretty_override: OS Config API product_documentation_override: https://cloud.google.com/compute/docs/os-patch-management billing_not_required: true - released_version: 2.97.0 - name: os-login version: 2.94.0 apis: @@ -3850,9 +3850,9 @@ libraries: java: api_description_override: manages OS login configuration for Directory API users. issue_tracker_override: https://issuetracker.google.com/savedsearches/559755 + released_version: 2.94.0 name_pretty_override: Cloud OS Login product_documentation_override: https://cloud.google.com/compute/docs/oslogin/ - released_version: 2.94.0 - name: parallelstore version: 0.58.0 apis: @@ -3868,10 +3868,10 @@ libraries: api_id_override: parallelstore.googleapis.com api_description_override: 'Parallelstore is based on Intel DAOS and delivers up to 6.3x greater read throughput performance compared to competitive Lustre scratch offerings. ' client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/latest/overview + released_version: 0.58.0 library_type_override: GAPIC_AUTO name_pretty_override: Parallelstore API product_documentation_override: https://cloud/parallelstore?hl=en - released_version: 0.58.0 - name: parametermanager version: 0.39.0 apis: @@ -3883,20 +3883,20 @@ libraries: api_id_override: parametermanager.googleapis.com api_description_override: (Public Preview) Parameter Manager is a single source of truth to store, access and manage the lifecycle of your workload parameters. Parameter Manager aims to make management of sensitive application parameters effortless for customers without diminishing focus on security. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/latest/overview + released_version: 0.39.0 library_type_override: GAPIC_AUTO name_pretty_override: Parameter Manager API product_documentation_override: https://cloud.google.com/secret-manager/parameter-manager/docs/overview - released_version: 0.39.0 - name: phishingprotection version: 0.126.0 apis: - path: google/cloud/phishingprotection/v1beta1 java: api_description_override: helps prevent users from accessing phishing sites by identifying various signals associated with malicious content, including the use of your brand assets, classifying malicious content that uses your brand and reporting the unsafe URLs to Google Safe Browsing. Once a site is propagated to Safe Browsing, users will see warnings across more than 4 billion devices. + released_version: 0.126.0 name_pretty_override: Phishing Protection product_documentation_override: https://cloud.google.com/phishing-protection/docs/ billing_not_required: true - released_version: 0.126.0 - name: policy-troubleshooter version: 1.94.0 apis: @@ -3905,18 +3905,18 @@ libraries: java: api_id_override: policytroubleshooter.googleapis.com api_description_override: makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter examines all Identity and Access Management (IAM) policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles. + released_version: 1.94.0 name_pretty_override: IAM Policy Troubleshooter API product_documentation_override: https://cloud.google.com/iam/docs/troubleshooting-access - released_version: 1.94.0 - name: policysimulator version: 0.74.0 apis: - path: google/cloud/policysimulator/v1 java: api_description_override: Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. + released_version: 0.74.0 name_pretty_override: Policy Simulator API product_documentation_override: https://cloud.google.com/policysimulator/docs/overview - released_version: 0.74.0 - name: private-catalog version: 0.97.0 apis: @@ -3924,9 +3924,9 @@ libraries: java: api_id_override: privatecatalog.googleapis.com api_description_override: allows developers and cloud admins to make their solutions discoverable to their internal enterprise users. Cloud admins can manage their solutions and ensure their users are always launching the latest versions. + released_version: 0.97.0 name_pretty_override: Private Catalog product_documentation_override: https://cloud.google.com/private-catalog/docs - released_version: 0.97.0 - name: privilegedaccessmanager version: 0.49.0 apis: @@ -3938,11 +3938,11 @@ libraries: api_id_override: privilegedaccessmanager.googleapis.com api_description_override: Privileged Access Manager (PAM) helps you on your journey towards least privilege and helps mitigate risks tied to privileged access misuse orabuse. PAM allows you to shift from always-on standing privileges towards on-demand access with just-in-time, time-bound, and approval-based access elevations. PAM allows IAM administrators to create entitlements that can grant just-in-time, temporary access to any resource scope. Requesters can explore eligible entitlements and request the access needed for their task. Approvers are notified when approvals await their decision. Streamlined workflows facilitated by using PAM can support various use cases, including emergency access for incident responders, time-boxed access for developers for critical deployment or maintenance, temporary access for operators for data ingestion and audits, JIT access to service accounts for automated tasks, and more. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview + released_version: 0.49.0 library_type_override: GAPIC_AUTO name_pretty_override: Privileged Access Manager API product_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview rpc_documentation: https://cloud.google.com/iam/docs/reference/pam/rpc - released_version: 0.49.0 - name: productregistry version: 0.1.0 apis: @@ -3956,9 +3956,9 @@ libraries: java: api_id_override: cloudprofiler.googleapis.com api_description_override: is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code. + released_version: 2.95.0 name_pretty_override: Cloud Profiler product_documentation_override: https://cloud.google.com/profiler/docs - released_version: 2.95.0 - name: publicca version: 0.92.0 apis: @@ -3966,10 +3966,10 @@ libraries: - path: google/cloud/security/publicca/v1beta1 java: api_description_override: The Public Certificate Authority API may be used to create and manage ACME external account binding keys associated with Google Trust Services' publicly trusted certificate authority. + released_version: 0.92.0 name_pretty_override: Public Certificate Authority API product_documentation_override: https://cloud.google.com/certificate-manager/docs/public-ca rpc_documentation: https://cloud.google.com/certificate-manager/docs/reference/public-ca/rpc - released_version: 0.92.0 - name: pubsub version: 1.153.0 apis: @@ -5127,11 +5127,11 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history codeowner_team: '@googleapis/pubsub-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559741 + released_version: 1.153.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Pub/Sub product_documentation_override: https://cloud.google.com/pubsub/docs/ recommended_package: com.google.cloud.pubsub.v1 - released_version: 1.153.0 - name: rapidmigrationassessment version: 0.78.0 apis: @@ -5141,9 +5141,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Rapid Migration Assessment API + released_version: 0.78.0 name_pretty_override: Rapid Migration Assessment API product_documentation_override: https://cloud.google.com/migration-center/docs - released_version: 0.78.0 - name: recaptchaenterprise version: 3.92.0 apis: @@ -5151,21 +5151,21 @@ libraries: - path: google/cloud/recaptchaenterprise/v1beta1 java: api_description_override: is a service that protects your site from spam and abuse. + released_version: 3.92.0 name_pretty_override: reCAPTCHA Enterprise product_documentation_override: https://cloud.google.com/recaptcha-enterprise/docs/ billing_not_required: true rest_documentation: https://cloud.google.com/recaptcha-enterprise/docs/reference/rest rpc_documentation: https://cloud.google.com/recaptcha-enterprise/docs/reference/rpc - released_version: 3.92.0 - name: recommendations-ai version: 0.102.0 apis: - path: google/cloud/recommendationengine/v1beta1 java: api_description_override: delivers highly personalized product recommendations at scale. + released_version: 0.102.0 name_pretty_override: Recommendations AI product_documentation_override: https://cloud.google.com/recommendations-ai/ - released_version: 0.102.0 - name: recommender version: 2.97.0 apis: @@ -5173,9 +5173,9 @@ libraries: - path: google/cloud/recommender/v1beta1 java: api_description_override: delivers highly personalized product recommendations at scale. + released_version: 2.97.0 name_pretty_override: Recommender product_documentation_override: https://cloud.google.com/recommendations/ - released_version: 2.97.0 - name: redis version: 2.98.0 apis: @@ -5187,9 +5187,9 @@ libraries: java: api_description_override: is a fully managed Redis service for the Google Cloud. Applications running on Google Cloud can achieve extreme performance by leveraging the highly scalable, available, secure Redis service without the burden of managing complex Redis deployments. issue_tracker_override: https://issuetracker.google.com/savedsearches/5169231 + released_version: 2.98.0 name_pretty_override: Cloud Redis product_documentation_override: https://cloud.google.com/memorystore/docs/redis/ - released_version: 2.98.0 - name: redis-cluster version: 0.67.0 apis: @@ -5204,9 +5204,9 @@ libraries: java: api_description_override: Creates and manages Redis instances on the Google Cloud Platform. api_shortname_override: redis-cluster + released_version: 0.67.0 name_pretty_override: Google Cloud Memorystore for Redis API product_documentation_override: https://cloud.google.com/memorystore/docs/cluster - released_version: 0.67.0 - name: resourcemanager version: 1.97.0 apis: @@ -5216,10 +5216,10 @@ libraries: java: api_description_override: enables you to programmatically manage resources by project, folder, and organization. issue_tracker_override: https://issuetracker.google.com/savedsearches/559757 + released_version: 1.97.0 name_pretty_override: Resource Manager API product_documentation_override: https://cloud.google.com/resource-manager billing_not_required: true - released_version: 1.97.0 - name: retail version: 2.97.0 apis: @@ -5237,9 +5237,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Retail solutions API. + released_version: 2.97.0 name_pretty_override: Cloud Retail product_documentation_override: https://cloud.google.com/solutions/retail - released_version: 2.97.0 - name: run version: 0.95.0 apis: @@ -5249,11 +5249,11 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a managed compute platform that enables you to run containers that are invocable via requests or events. + released_version: 0.95.0 name_pretty_override: Cloud Run product_documentation_override: https://cloud.google.com/run/docs rest_documentation: https://cloud.google.com/run/docs/reference/rest rpc_documentation: https://cloud.google.com/run/docs/reference/rpc - released_version: 0.95.0 - name: saasservicemgmt version: 0.25.0 apis: @@ -5265,11 +5265,11 @@ libraries: api_id_override: saasservicemgmt.googleapis.com api_description_override: "Model, deploy, and operate your SaaS at scale.\t" client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview + released_version: 0.25.0 library_type_override: GAPIC_AUTO name_pretty_override: App Lifecycle Manager product_documentation_override: https://cloud.google.com/saas-runtime/docs/overview rpc_documentation: https://cloud.google.com/saas-runtime/docs/apis - released_version: 0.25.0 - name: scheduler version: 2.95.0 apis: @@ -5287,12 +5287,12 @@ libraries: java: api_description_override: lets you set up scheduled units of work to be executed at defined times or regular intervals. These work units are commonly known as cron jobs. Typical use cases might include sending out a report email on a daily basis, updating some cached data every 10 minutes, or updating some summary information once an hour. issue_tracker_override: https://issuetracker.google.com/savedsearches/5411429 + released_version: 2.95.0 name_pretty_override: Google Cloud Scheduler product_documentation_override: https://cloud.google.com/scheduler/docs billing_not_required: true rest_documentation: https://cloud.google.com/scheduler/docs/reference/rest rpc_documentation: https://cloud.google.com/scheduler/docs/reference/rpc - released_version: 2.95.0 - name: secretmanager version: 2.95.0 apis: @@ -5307,10 +5307,10 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: allows you to encrypt, store, manage, and audit infrastructure and application-level secrets. + released_version: 2.95.0 name_pretty_override: Secret Management product_documentation_override: https://cloud.google.com/solutions/secrets-management/ billing_not_required: true - released_version: 2.95.0 - name: securesourcemanager version: 0.65.0 apis: @@ -5323,9 +5323,9 @@ libraries: api_description_override: |- Regionally deployed, single-tenant managed source code repository hosted on Google Cloud. + released_version: 0.65.0 name_pretty_override: Secure Source Manager API product_documentation_override: https://cloud.google.com/secure-source-manager/docs/overview - released_version: 0.65.0 - name: security-private-ca version: 2.97.0 apis: @@ -5338,11 +5338,11 @@ libraries: java: api_id_override: privateca.googleapis.com api_description_override: simplifies the deployment and management of private CAs without managing infrastructure. + released_version: 2.97.0 name_pretty_override: Certificate Authority Service product_documentation_override: https://cloud.google.com/certificate-authority-service/docs rest_documentation: https://cloud.google.com/certificate-authority-service/docs/reference/rest rpc_documentation: https://cloud.google.com/certificate-authority-service/docs/reference/rpc - released_version: 2.97.0 - name: securitycenter version: 2.103.0 apis: @@ -5359,11 +5359,11 @@ libraries: java: api_description_override: makes it easier for you to prevent, detect, and respond to threats. Identify security misconfigurations in virtual machines, networks, applications, and storage buckets from a centralized dashboard. Take action on them before they can potentially result in business damage or loss. Built-in capabilities can quickly surface suspicious activity in your Stackdriver security logs or indicate compromised virtual machines. Respond to threats by following actionable recommendations or exporting logs to your SIEM for further investigation. issue_tracker_override: https://issuetracker.google.com/savedsearches/559748 + released_version: 2.103.0 name_pretty_override: Security Command Center product_documentation_override: https://cloud.google.com/security-command-center billing_not_required: true rest_documentation: https://cloud.google.com/security-command-center/docs/reference/rest - released_version: 2.103.0 - name: securitycenter-settings version: 0.98.0 apis: @@ -5371,11 +5371,11 @@ libraries: java: api_id_override: securitycenter-settings.googleapis.com api_description_override: is the canonical security and data risk database for Google Cloud. Security Command Center enables you to understand your security and data attack surface by providing asset inventory, discovery, search, and management. + released_version: 0.98.0 name_pretty_override: Security Command Center Settings API product_documentation_override: https://cloud.google.com/security-command-center/ billing_not_required: true rest_documentation: https://cloud.google.com/security-command-center/docs/reference/rest - released_version: 0.98.0 - name: securitycentermanagement version: 0.63.0 apis: @@ -5385,9 +5385,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Security Center Management API + released_version: 0.63.0 name_pretty_override: Security Center Management API product_documentation_override: https://cloud.google.com/securitycentermanagement/docs/overview - released_version: 0.63.0 - name: securityposture version: 0.60.0 apis: @@ -5397,9 +5397,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Security Posture is a comprehensive framework of policy sets that empowers organizations to define, assess early, deploy, and monitor their security measures in a unified way and helps simplify governance and reduces administrative toil. + released_version: 0.60.0 name_pretty_override: Security Posture API product_documentation_override: https://cloud.google.com/security-command-center/docs/security-posture-overview - released_version: 0.60.0 - name: service-control version: 1.95.0 apis: @@ -5407,9 +5407,9 @@ libraries: - path: google/api/servicecontrol/v1 java: api_description_override: ' is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway.' + released_version: 1.95.0 name_pretty_override: Service Control API product_documentation_override: https://cloud.google.com/service-infrastructure/docs/overview/ - released_version: 1.95.0 - name: service-management version: 3.93.0 apis: @@ -5422,9 +5422,9 @@ libraries: java: api_id_override: servicemanagement.googleapis.com api_description_override: is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. Service Infrastructure provides a wide range of features to service consumers and service producers, including authentication, authorization, auditing, rate limiting, analytics, billing, logging, and monitoring. + released_version: 3.93.0 name_pretty_override: Service Management API product_documentation_override: https://cloud.google.com/service-infrastructure/docs/overview/ - released_version: 3.93.0 - name: service-usage version: 2.95.0 apis: @@ -5432,9 +5432,9 @@ libraries: - path: google/api/serviceusage/v1beta1 java: api_description_override: is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. + released_version: 2.95.0 name_pretty_override: Service Usage product_documentation_override: https://cloud.google.com/service-usage/docs/overview - released_version: 2.95.0 - name: servicedirectory version: 2.96.0 apis: @@ -5448,12 +5448,12 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: allows the registration and lookup of service endpoints. + released_version: 2.96.0 name_pretty_override: Service Directory product_documentation_override: https://cloud.google.com/service-directory/ billing_not_required: true rest_documentation: https://cloud.google.com/service-directory/docs/reference/rest rpc_documentation: https://cloud.google.com/service-directory/docs/reference/rpc - released_version: 2.96.0 - name: servicehealth version: 0.62.0 apis: @@ -5463,10 +5463,10 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Personalized Service Health helps you gain visibility into disruptive events impacting Google Cloud products. + released_version: 0.62.0 name_pretty_override: Service Health API product_documentation_override: https://cloud.google.com/service-health/docs/overview rpc_documentation: https://cloud.google.com/service-health/docs/reference/rpc - released_version: 0.62.0 - name: shell version: 2.94.0 apis: @@ -5474,11 +5474,11 @@ libraries: java: api_description_override: is an interactive shell environment for Google Cloud that makes it easy for you to learn and experiment with Google Cloud and manage your projects and resources from your web browser. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.94.0 name_pretty_override: Cloud Shell product_documentation_override: https://cloud.google.com/shell/docs rest_documentation: https://cloud.google.com/shell/docs/reference/rest rpc_documentation: https://cloud.google.com/shell/docs/reference/rpc - released_version: 2.94.0 - name: shopping-css version: 0.63.0 apis: @@ -5486,9 +5486,9 @@ libraries: java: api_description_override: The CSS API is used to manage your CSS and control your CSS Products portfolio artifact_id: google-shopping-css + released_version: 0.63.0 name_pretty_override: CSS API product_documentation_override: https://developers.google.com/comparison-shopping-services/api - released_version: 0.63.0 - name: shopping-merchant-accounts version: 1.23.0 apis: @@ -5499,10 +5499,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-accounts client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-conversions version: 1.23.0 apis: @@ -5514,10 +5514,10 @@ libraries: api_shortname_override: shopping-merchant-conversions artifact_id: google-shopping-merchant-conversions client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Conversions API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-datasources version: 1.23.0 apis: @@ -5528,10 +5528,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-datasources client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-inventories version: 1.23.0 apis: @@ -5540,9 +5540,9 @@ libraries: java: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-inventories + released_version: 1.23.0 name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-lfp version: 1.23.0 apis: @@ -5554,10 +5554,10 @@ libraries: api_shortname_override: shopping-merchant-lfp artifact_id: google-shopping-merchant-lfp client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant LFP API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-notifications version: 1.23.0 apis: @@ -5569,10 +5569,10 @@ libraries: api_shortname_override: shopping-merchant-notifications artifact_id: google-shopping-merchant-notifications client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Notifications API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-product-studio version: 0.35.0 apis: @@ -5582,10 +5582,10 @@ libraries: api_description_override: Programmatically manage your products. artifact_id: google-shopping-merchant-productstudio client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview + released_version: 0.35.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 0.35.0 - name: shopping-merchant-products version: 1.23.0 apis: @@ -5596,10 +5596,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-products client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-promotions version: 1.23.0 apis: @@ -5610,10 +5610,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-promotions client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-quota version: 1.23.0 apis: @@ -5625,10 +5625,10 @@ libraries: api_shortname_override: shopping-merchant-quota artifact_id: google-shopping-merchant-quota client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview + released_version: 1.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Quota API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-reports version: 1.23.0 apis: @@ -5638,9 +5638,9 @@ libraries: java: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-reports + released_version: 1.23.0 name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.23.0 - name: shopping-merchant-reviews version: 0.41.0 apis: @@ -5649,10 +5649,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center Accounts. artifact_id: google-shopping-merchant-reviews client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview + released_version: 0.41.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 0.41.0 - name: showcase version: 0.0.1-SNAPSHOT apis: @@ -5715,13 +5715,13 @@ libraries: - google-cloud-spanner-bom - google-cloud-spanner issue_tracker_override: https://issuetracker.google.com/issues?q=componentid:190851%2B%20status:open + released_version: 6.120.0 library_type_override: GAPIC_COMBO min_java_version: 8 name_pretty_override: Cloud Spanner product_documentation_override: https://cloud.google.com/spanner/docs/ recommended_package: com.google.cloud.spanner transport_override: grpc - released_version: 6.120.0 - name: spanneradapter version: 0.31.0 apis: @@ -5731,10 +5731,10 @@ libraries: api_description_override: The Cloud Spanner Adapter service allows native drivers of supported database dialects to interact directly with Cloud Spanner by wrapping the underlying wire protocol used by the driver in a gRPC stream. api_shortname_override: spanneradapter client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview + released_version: 0.31.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Spanner Adapter API product_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview - released_version: 0.31.0 - name: speech version: 4.90.0 apis: @@ -5752,12 +5752,12 @@ libraries: java: api_description_override: enables easy integration of Google speech recognition technologies into developer applications. Send audio and receive a text transcription from the Speech-to-Text API service. issue_tracker_override: https://issuetracker.google.com/savedsearches/559758 + released_version: 4.90.0 name_pretty_override: Cloud Speech product_documentation_override: https://cloud.google.com/speech-to-text/docs/ billing_not_required: true rest_documentation: https://cloud.google.com/speech-to-text/docs/reference/rest rpc_documentation: https://cloud.google.com/speech-to-text/docs/reference/rpc - released_version: 4.90.0 - name: sql version: 0.1.0 apis: @@ -5805,21 +5805,21 @@ libraries: - google-cloud-storage extra_versioned_modules: gapic-google-cloud-storage-v2 issue_tracker_override: https://issuetracker.google.com/savedsearches/559782 + released_version: 2.71.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Storage product_documentation_override: https://cloud.google.com/storage recommended_package: com.google.cloud.storage transport_override: rest - released_version: 2.71.0 - name: storage-transfer version: 1.95.0 apis: - path: google/storagetransfer/v1 java: api_description_override: Secure, low-cost services for transferring data from cloud or on-premises sources. + released_version: 1.95.0 name_pretty_override: Storage Transfer Service product_documentation_override: https://cloud.google.com/storage-transfer-service - released_version: 1.95.0 - name: storagebatchoperations version: 0.35.0 apis: @@ -5831,10 +5831,10 @@ libraries: api_id_override: storagebatchoperations.googleapis.com api_description_override: Storage batch operations is a Cloud Storage management feature that performs operations on billions of Cloud Storage objects in a serverless manner. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/overview + released_version: 0.35.0 library_type_override: GAPIC_AUTO name_pretty_override: Storage Batch Operations API product_documentation_override: https://cloud.google.com/storage/docs/batch-operations/overview - released_version: 0.35.0 - name: storageinsights version: 0.80.0 apis: @@ -5844,9 +5844,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Provides insights capability on Google Cloud Storage + released_version: 0.80.0 name_pretty_override: Storage Insights API product_documentation_override: https://cloud.google.com/storage/docs/insights/storage-insights/ - released_version: 0.80.0 - name: talent version: 2.96.0 apis: @@ -5855,9 +5855,9 @@ libraries: java: api_description_override: allows you to transform your job search and candidate matching capabilities with Cloud Talent Solution, designed to support enterprise talent acquisition technology and evolve with your growing needs. This AI solution includes features such as Job Search and Profile Search (Beta) to provide candidates and employers with an enhanced talent acquisition experience. Learn more about Cloud Talent Solution from the product overview page. issue_tracker_override: https://issuetracker.google.com/savedsearches/559664 + released_version: 2.96.0 name_pretty_override: Talent Solution product_documentation_override: https://cloud.google.com/solutions/talent-solution/ - released_version: 2.96.0 - name: tasks version: 2.95.0 apis: @@ -5968,11 +5968,11 @@ libraries: api_description_override: a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint. codeowner_team: '@googleapis/aap-dpes' issue_tracker_override: https://issuetracker.google.com/savedsearches/5433985 + released_version: 2.95.0 name_pretty_override: Cloud Tasks product_documentation_override: https://cloud.google.com/tasks/docs/ rest_documentation: https://cloud.google.com/tasks/docs/reference/rest rpc_documentation: https://cloud.google.com/tasks/docs/reference/rpc - released_version: 2.95.0 - name: telcoautomation version: 0.65.0 apis: @@ -5986,9 +5986,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: APIs to automate 5G deployment and management of cloud infrastructure and network functions. + released_version: 0.65.0 name_pretty_override: Telco Automation API product_documentation_override: https://cloud.google.com/telecom-network-automation - released_version: 0.65.0 - name: texttospeech version: 2.96.0 apis: @@ -6000,12 +6000,12 @@ libraries: java: api_description_override: enables easy integration of Google text recognition technologies into developer applications. Send text and receive synthesized audio output from the Cloud Text-to-Speech API service. issue_tracker_override: https://issuetracker.google.com/savedsearches/5235428 + released_version: 2.96.0 name_pretty_override: Cloud Text-to-Speech product_documentation_override: https://cloud.google.com/text-to-speech billing_not_required: true rest_documentation: https://cloud.google.com/text-to-speech/docs/reference/rest rpc_documentation: https://cloud.google.com/text-to-speech/docs/reference/rpc - released_version: 2.96.0 - name: tpu version: 2.96.0 apis: @@ -6023,10 +6023,10 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads. + released_version: 2.96.0 name_pretty_override: Cloud TPU product_documentation_override: https://cloud.google.com/tpu/docs rest_documentation: https://cloud.google.com/tpu/docs/reference/rest - released_version: 2.96.0 - name: trace version: 2.95.0 apis: @@ -6037,10 +6037,10 @@ libraries: - google-cloud-trace/src/test/java/com/google/cloud/trace/v2/VPCServiceControlTest.java java: api_description_override: is a distributed tracing system that collects latency data from your applications and displays it in the Google Cloud Platform Console. You can track how requests propagate through your application and receive detailed near real-time performance insights. + released_version: 2.95.0 name_pretty_override: Stackdriver Trace product_documentation_override: https://cloud.google.com/trace/docs/ billing_not_required: true - released_version: 2.95.0 - name: translate version: 2.95.0 apis: @@ -6050,11 +6050,11 @@ libraries: api_id_override: translate.googleapis.com api_description_override: can dynamically translate text between thousands of language pairs. Translation lets websites and programs programmatically integrate with the translation service. issue_tracker_override: https://issuetracker.google.com/savedsearches/559749 + released_version: 2.95.0 name_pretty_override: Cloud Translation product_documentation_override: https://cloud.google.com/translate/docs/ rest_documentation: https://cloud.google.com/translate/docs/reference/rest rpc_documentation: https://cloud.google.com/translate/docs/reference/rpc - released_version: 2.95.0 - name: valkey version: 0.41.0 apis: @@ -6070,11 +6070,11 @@ libraries: api_id_override: memorystore.googleapis.com api_description_override: Memorystore for Valkey is a fully managed Valkey Cluster service for Google Cloud. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview + released_version: 0.41.0 library_type_override: GAPIC_AUTO name_pretty_override: Memorystore API product_documentation_override: https://cloud.google.com/memorystore/docs/valkey rest_documentation: https://cloud.google.com/memorystore/docs/valkey/reference/rest - released_version: 0.41.0 - name: vectorsearch version: 0.17.0 apis: @@ -6090,10 +6090,10 @@ libraries: api_id_override: vectorsearch.googleapis.com api_description_override: The Vector Search API provides a fully-managed, highly performant, and scalable vector database designed to power next-generation search, recommendation, and generative AI applications. It allows you to store, index, and query your data and its corresponding vector embeddings through a simple, intuitive interface. With Vector Search, you can define custom schemas for your data, insert objects with associated metadata, automatically generate embeddings from your data, and perform fast approximate nearest neighbor (ANN) searches to find semantically similar items at scale. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview + released_version: 0.17.0 library_type_override: GAPIC_AUTO name_pretty_override: Vector Search API product_documentation_override: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview - released_version: 0.17.0 - name: video-intelligence version: 2.94.0 apis: @@ -6105,11 +6105,11 @@ libraries: java: api_description_override: allows developers to use Google video analysis technology as part of their applications. issue_tracker_override: https://issuetracker.google.com/savedsearches/5084810 + released_version: 2.94.0 name_pretty_override: Cloud Video Intelligence product_documentation_override: https://cloud.google.com/video-intelligence/docs/ rest_documentation: https://cloud.google.com/video-intelligence/docs/reference/rest rpc_documentation: https://cloud.google.com/video-intelligence/docs/reference/rpc - released_version: 2.94.0 - name: video-live-stream version: 0.97.0 apis: @@ -6120,18 +6120,18 @@ libraries: java: api_description_override: transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms. artifact_id: google-cloud-live-stream + released_version: 0.97.0 name_pretty_override: Live Stream API product_documentation_override: https://cloud.google.com/livestream/ - released_version: 0.97.0 - name: video-stitcher version: 0.95.0 apis: - path: google/cloud/video/stitcher/v1 java: api_description_override: allows you to manipulate video content to dynamically insert ads prior to delivery to client devices. + released_version: 0.95.0 name_pretty_override: Video Stitcher API product_documentation_override: https://cloud.google.com/video-stitcher/ - released_version: 0.95.0 - name: video-transcoder version: 1.94.0 apis: @@ -6139,11 +6139,11 @@ libraries: java: api_id_override: transcoder.googleapis.com api_description_override: allows you to transcode videos into a variety of formats. The Transcoder API benefits broadcasters, production companies, businesses, and individuals looking to transform their video content for use across a variety of user devices. + released_version: 1.94.0 name_pretty_override: Video Transcoder product_documentation_override: https://cloud.google.com/transcoder/docs rest_documentation: https://cloud.google.com/transcoder/docs/reference/rest rpc_documentation: https://cloud.google.com/transcoder/docs/reference/rpc - released_version: 1.94.0 - name: vision version: 3.93.0 apis: @@ -6165,11 +6165,11 @@ libraries: java: api_description_override: allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content. issue_tracker_override: https://issuetracker.google.com/issues?q=status:open%20componentid:187174 + released_version: 3.93.0 name_pretty_override: Cloud Vision product_documentation_override: https://cloud.google.com/vision/docs/ rest_documentation: https://cloud.google.com/vision/docs/reference/rest rpc_documentation: https://cloud.google.com/vision/docs/reference/rpc - released_version: 3.93.0 - name: visionai version: 0.52.0 apis: @@ -6182,11 +6182,11 @@ libraries: api_id_override: visionai.googleapis.com api_description_override: Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-visionai/latest/overview + released_version: 0.52.0 library_type_override: GAPIC_AUTO name_pretty_override: Vision AI API product_documentation_override: https://cloud.google.com/vision-ai/docs rpc_documentation: https://cloud.google.com/vision-ai/docs/reference/rpc - released_version: 0.52.0 - name: vmmigration version: 1.95.0 apis: @@ -6197,9 +6197,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: helps customers migrating VMs to GCP at no additional cost, as well as an extensive ecosystem of partners to help with discovery and assessment, planning, migration, special use cases, and more. + released_version: 1.95.0 name_pretty_override: VM Migration product_documentation_override: n/a - released_version: 1.95.0 - name: vmwareengine version: 0.89.0 apis: @@ -6210,10 +6210,10 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. + released_version: 0.89.0 name_pretty_override: Google Cloud VMware Engine product_documentation_override: https://cloud.google.com/vmware-engine/ rest_documentation: https://cloud.google.com/vmware-engine/docs/reference/rest - released_version: 0.89.0 - name: vpcaccess version: 2.96.0 apis: @@ -6223,9 +6223,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: enables you to connect from a serverless environment on Google Cloud directly to your VPC network. This connection makes it possible for your serverless environment to access resources in your VPC network via internal IP addresses. + released_version: 2.96.0 name_pretty_override: Serverless VPC Access product_documentation_override: https://cloud.google.com/vpc/docs/serverless-vpc-access - released_version: 2.96.0 - name: webrisk version: 2.94.0 apis: @@ -6233,12 +6233,12 @@ libraries: - path: google/cloud/webrisk/v1beta1 java: api_description_override: is a Google Cloud service that lets client applications check URLs against Google's constantly updated lists of unsafe web resources. Unsafe web resources include social engineering sites - such as phishing and deceptive sites - and sites that host malware or unwanted software. With the Web Risk API, you can quickly identify known bad sites, warn users before they click infected links, and prevent users from posting links to known infected pages from your site. The Web Risk API includes data on more than a million unsafe URLs and stays up to date by examining billions of URLs each day. + released_version: 2.94.0 name_pretty_override: Web Risk product_documentation_override: https://cloud.google.com/web-risk/docs/ billing_not_required: true rest_documentation: https://cloud.google.com/web-risk/docs/reference/rest rpc_documentation: https://cloud.google.com/web-risk/docs/reference/rpc - released_version: 2.94.0 - name: websecurityscanner version: 2.95.0 apis: @@ -6251,10 +6251,10 @@ libraries: java: api_description_override: identifies security vulnerabilities in your App Engine, Compute Engine, and Google Kubernetes Engine web applications. It crawls your application, following all links within the scope of your starting URLs, and attempts to exercise as many user inputs and event handlers as possible. issue_tracker_override: https://issuetracker.google.com/savedsearches/559748 + released_version: 2.95.0 name_pretty_override: Cloud Security Scanner product_documentation_override: https://cloud.google.com/security-scanner/docs/ billing_not_required: true - released_version: 2.95.0 - name: workflow-executions version: 2.95.0 apis: @@ -6263,10 +6263,10 @@ libraries: java: api_description_override: allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.95.0 name_pretty_override: Cloud Workflow Executions product_documentation_override: https://cloud.google.com/workflows rest_documentation: https://cloud.google.com/workflows/docs/reference/rest - released_version: 2.95.0 - name: workflows version: 2.95.0 apis: @@ -6281,10 +6281,10 @@ libraries: java: api_description_override: allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.95.0 name_pretty_override: Cloud Workflows product_documentation_override: https://cloud.google.com/workflows rest_documentation: https://cloud.google.com/workflows/docs/reference/rest - released_version: 2.95.0 - name: workloadmanager version: 0.11.0 apis: @@ -6296,11 +6296,11 @@ libraries: api_id_override: workloadmanager.googleapis.com api_description_override: Workload Manager is a service that provides tooling for enterprise workloads to automate the deployment and validation of your workloads against best practices and recommendations. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/overview + released_version: 0.11.0 library_type_override: GAPIC_AUTO name_pretty_override: Workload Manager API product_documentation_override: https://docs.cloud.google.com/workload-manager/docs rpc_documentation: https://docs.cloud.google.com/workload-manager/docs/reference/rest - released_version: 0.11.0 - name: workspaceevents version: 0.59.0 apis: @@ -6308,10 +6308,10 @@ libraries: - path: google/apps/events/subscriptions/v1beta java: api_description_override: The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications. + released_version: 0.59.0 name_pretty_override: Google Workspace Events API product_documentation_override: https://developers.google.com/workspace/events rest_documentation: https://developers.google.com/workspace/events/reference/rest - released_version: 0.59.0 - name: workstations version: 0.83.0 apis: @@ -6327,8 +6327,8 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Fully managed development environments built to meet the needs of security-sensitive enterprises. It enhances the security of development environments while accelerating developer onboarding and productivity. + released_version: 0.83.0 name_pretty_override: Cloud Workstations product_documentation_override: https://cloud.google.com/workstations rest_documentation: https://cloud.google.com/workstations/docs/reference/rest rpc_documentation: https://cloud.google.com/workstations/docs/reference/rpc - released_version: 0.83.0 From 9253a8b3b4d5a22784806532bdf685e1a8520a77 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 31 Jul 2026 05:31:39 +0000 Subject: [PATCH 2/2] chore: generate libraries --- java-accessapproval/README.md | 8 +- java-accesscontextmanager/README.md | 8 +- java-admanager/README.md | 8 +- java-advisorynotifications/README.md | 8 +- java-agentidentity/README.md | 8 +- java-agentregistry/README.md | 8 +- java-aiplatform/README.md | 8 +- java-alloydb-connectors/README.md | 8 +- java-alloydb/README.md | 8 +- java-analytics-admin/README.md | 8 +- java-analytics-data/README.md | 8 +- java-analyticshub/README.md | 8 +- java-api-gateway/README.md | 8 +- java-apigee-connect/README.md | 8 +- java-apihub/README.md | 8 +- java-apikeys/README.md | 8 +- java-appengine-admin/README.md | 8 +- java-apphub/README.md | 8 +- java-appoptimize/README.md | 8 +- java-area120-tables/README.md | 8 +- java-artifact-registry/README.md | 8 +- java-asset/README.md | 8 +- java-assured-workloads/README.md | 8 +- java-auditmanager/README.md | 8 +- java-automl/README.md | 8 +- java-backstory/README.md | 8 +- java-backupdr/README.md | 8 +- java-bare-metal-solution/README.md | 8 +- java-batch/README.md | 8 +- java-beyondcorp-appconnections/README.md | 8 +- java-beyondcorp-appconnectors/README.md | 8 +- java-beyondcorp-appgateways/README.md | 8 +- .../README.md | 8 +- java-beyondcorp-clientgateways/README.md | 8 +- java-biglake/README.md | 8 +- java-bigquery-data-exchange/README.md | 8 +- java-bigqueryconnection/README.md | 8 +- java-bigquerydatapolicy/README.md | 8 +- java-bigquerydatatransfer/README.md | 8 +- java-bigquerymigration/README.md | 8 +- java-bigqueryreservation/README.md | 8 +- java-bigquerystorage/README.md | 8 +- java-bigtable/README.md | 8 +- java-billing/README.md | 8 +- java-billingbudgets/README.md | 8 +- java-binary-authorization/README.md | 8 +- java-capacityplanner/README.md | 8 +- java-certificate-manager/README.md | 8 +- java-ces/README.md | 8 +- java-channel/README.md | 8 +- java-chat/README.md | 8 +- .../com/google/chat/v1/ChatServiceClient.java | 549 + .../google/chat/v1/ChatServiceSettings.java | 15 + .../com/google/chat/v1/gapic_metadata.json | 3 + .../google/chat/v1/stub/ChatServiceStub.java | 12 + .../chat/v1/stub/ChatServiceStubSettings.java | 89 + .../chat/v1/stub/GrpcChatServiceStub.java | 47 + .../chat/v1/stub/HttpJsonChatServiceStub.java | 74 + .../com.google.chat.v1/reflect-config.json | 63 + .../v1/ChatServiceClientHttpJsonTest.java | 105 + .../google/chat/v1/ChatServiceClientTest.java | 95 + .../google/chat/v1/MockChatServiceImpl.java | 21 + .../com/google/chat/v1/ChatServiceGrpc.java | 313 +- .../com/google/chat/v1/ChatServiceProto.java | 422 +- .../v1/CreateMessageNotificationOptions.java | 12 +- .../google/chat/v1/CreateMessageRequest.java | 14 +- .../v1/CreateMessageRequestOrBuilder.java | 4 +- .../main/java/com/google/chat/v1/Message.java | 76 +- .../com/google/chat/v1/MessageOrBuilder.java | 20 +- .../java/com/google/chat/v1/MessageProto.java | 96 +- .../google/chat/v1/SearchMessageResult.java | 1085 ++ .../chat/v1/SearchMessageResultOrBuilder.java | 147 + .../google/chat/v1/SearchMessagesRequest.java | 2682 +++ .../v1/SearchMessagesRequestOrBuilder.java | 479 + .../chat/v1/SearchMessagesResponse.java | 1115 ++ .../v1/SearchMessagesResponseOrBuilder.java | 112 + .../main/java/com/google/chat/v1/Space.java | 48 +- .../com/google/chat/v1/SpaceOrBuilder.java | 6 +- .../proto/google/chat/v1/chat_service.proto | 35 + .../main/proto/google/chat/v1/message.proto | 244 +- .../src/main/proto/google/chat/v1/space.proto | 13 +- .../searchmessages/AsyncSearchMessages.java | 56 + .../AsyncSearchMessagesPaged.java | 63 + .../searchmessages/SyncSearchMessages.java | 52 + .../SyncSearchMessagesSpacenameString.java | 46 + .../SyncSearchMessagesStringString.java | 46 + java-chronicle/README.md | 8 +- java-cloudapiregistry/README.md | 8 +- java-cloudbuild/README.md | 8 +- .../README.md | 8 +- java-cloudcontrolspartner/README.md | 8 +- java-cloudquotas/README.md | 8 +- java-cloudsecuritycompliance/README.md | 8 +- java-cloudsupport/README.md | 8 +- java-commerceproducer/README.md | 8 +- java-compute/README.md | 8 +- java-confidentialcomputing/README.md | 8 +- java-configdelivery/README.md | 8 +- java-connectgateway/README.md | 8 +- java-contact-center-insights/README.md | 8 +- java-container/README.md | 8 +- java-containeranalysis/README.md | 8 +- java-contentwarehouse/README.md | 8 +- java-data-fusion/README.md | 8 +- java-databasecenter/README.md | 8 +- java-datacatalog/README.md | 8 +- java-dataflow/README.md | 8 +- java-dataform/README.md | 8 +- java-datalabeling/README.md | 8 +- java-datalineage/README.md | 8 +- java-datamanager/README.md | 8 +- .../v1/IngestionServiceClient.java | 77 + .../v1/IngestionServiceSettings.java | 13 + .../ads/datamanager/v1/gapic_metadata.json | 3 + .../v1/stub/GrpcIngestionServiceStub.java | 36 + .../v1/stub/HttpJsonIngestionServiceStub.java | 62 + .../v1/stub/IngestionServiceStub.java | 7 + .../v1/stub/IngestionServiceStubSettings.java | 30 + .../reflect-config.json | 189 + .../IngestionServiceClientHttpJsonTest.java | 63 +- .../v1/IngestionServiceClientTest.java | 60 +- .../v1/MockIngestionServiceImpl.java | 23 + .../datamanager/v1/IngestionServiceGrpc.java | 147 +- .../google/ads/datamanager/v1/AdEvent.java | 76 +- .../ads/datamanager/v1/AdEventOrBuilder.java | 20 +- .../ads/datamanager/v1/AdEventProto.java | 4 +- .../ads/datamanager/v1/AddressInfo.java | 707 + .../datamanager/v1/AddressInfoOrBuilder.java | 118 + .../ads/datamanager/v1/AudienceMember.java | 639 +- .../v1/AudienceMemberOrBuilder.java | 74 + .../ads/datamanager/v1/AudienceProto.java | 51 +- .../google/ads/datamanager/v1/DeviceInfo.java | 21 +- .../datamanager/v1/DeviceInfoOrBuilder.java | 6 +- .../google/ads/datamanager/v1/ErrorProto.java | 16 +- .../ads/datamanager/v1/ErrorReason.java | 50 + .../ads/datamanager/v1/FieldWarning.java | 948 + .../datamanager/v1/FieldWarningOrBuilder.java | 108 + .../ads/datamanager/v1/GoogleUserIdData.java | 698 + .../v1/GoogleUserIdDataOrBuilder.java | 82 + .../datamanager/v1/IngestAdEventsRequest.java | 72 +- .../v1/IngestAdEventsRequestOrBuilder.java | 18 +- .../v1/IngestAudienceMembersResponse.java | 521 + ...ngestAudienceMembersResponseOrBuilder.java | 56 + .../datamanager/v1/IngestEventsResponse.java | 521 + .../v1/IngestEventsResponseOrBuilder.java | 56 + .../datamanager/v1/IngestedUserListInfo.java | 4 + .../datamanager/v1/IngestionServiceProto.java | 218 +- .../v1/ListUserListDirectLicensesRequest.java | 28 + ...serListDirectLicensesRequestOrBuilder.java | 8 + ...ListGlobalLicenseCustomerInfosRequest.java | 28 + ...lLicenseCustomerInfosRequestOrBuilder.java | 8 + .../v1/ListUserListGlobalLicensesRequest.java | 28 + ...serListGlobalLicensesRequestOrBuilder.java | 8 + .../datamanager/v1/ListUserListsRequest.java | 28 + .../v1/ListUserListsRequestOrBuilder.java | 8 + .../google/ads/datamanager/v1/MobileData.java | 78 +- .../datamanager/v1/MobileDataOrBuilder.java | 24 +- .../datamanager/v1/PartnerProvidedIdData.java | 712 + .../v1/PartnerProvidedIdDataOrBuilder.java | 86 + .../datamanager/v1/ProcessingErrorReason.java | 25 + .../datamanager/v1/ProcessingErrorsProto.java | 186 +- .../v1/RemoveAllAudienceMembersRequest.java | 1422 ++ ...oveAllAudienceMembersRequestOrBuilder.java | 157 + .../v1/RemoveAllAudienceMembersResponse.java | 606 + ...veAllAudienceMembersResponseOrBuilder.java | 54 + .../v1/RequestStatusPerDestination.java | 14737 +++++++++++----- .../RequestStatusPerDestinationOrBuilder.java | 45 + .../v1/RequestStatusPerDestinationProto.java | 229 +- .../v1/SearchPartnerLinksRequest.java | 57 +- .../SearchPartnerLinksRequestOrBuilder.java | 16 +- .../ads/datamanager/v1/UserDataProto.java | 21 +- .../ads/datamanager/v1/WarningReason.java | 515 + .../google/ads/datamanager/v1/ad_event.proto | 8 +- .../google/ads/datamanager/v1/audience.proto | 27 +- .../ads/datamanager/v1/device_info.proto | 3 +- .../google/ads/datamanager/v1/error.proto | 8 + .../datamanager/v1/ingestion_service.proto | 50 +- .../datamanager/v1/partner_link_service.proto | 9 +- .../datamanager/v1/processing_errors.proto | 88 + .../v1/request_status_per_destination.proto | 76 + .../google/ads/datamanager/v1/user_data.proto | 29 + .../google/ads/datamanager/v1/user_list.proto | 2 + .../v1/user_list_direct_license_service.proto | 4 + .../v1/user_list_global_license_service.proto | 8 + .../datamanager/v1/user_list_service.proto | 4 + .../AsyncRemoveAllAudienceMembers.java | 54 + .../SyncRemoveAllAudienceMembers.java | 51 + java-dataplex/README.md | 8 +- java-dataproc-metastore/README.md | 8 +- java-dataproc/README.md | 8 +- java-datastore/README.md | 8 +- java-datastream/README.md | 8 +- java-deploy/README.md | 8 +- java-developerconnect/README.md | 8 +- java-developerknowledge/README.md | 8 +- java-devicestreaming/README.md | 8 +- java-dialogflow-cx/README.md | 8 +- java-dialogflow/README.md | 8 +- java-discoveryengine/README.md | 8 +- java-distributedcloudedge/README.md | 8 +- java-dlp/README.md | 8 +- java-dms/README.md | 8 +- java-document-ai/README.md | 8 +- java-domains/README.md | 8 +- java-edgenetwork/README.md | 8 +- java-enterpriseknowledgegraph/README.md | 8 +- java-errorreporting/README.md | 8 +- java-essential-contacts/README.md | 8 +- java-eventarc-publishing/README.md | 8 +- java-eventarc/README.md | 8 +- java-filestore/README.md | 8 +- java-financialservices/README.md | 8 +- java-firestore/README.md | 8 +- java-functions/README.md | 8 +- java-gdchardwaremanagement/README.md | 8 +- java-geminidataanalytics/README.md | 8 +- java-gke-backup/README.md | 8 +- java-gke-connect-gateway/README.md | 8 +- java-gke-multi-cloud/README.md | 8 +- java-gkehub/README.md | 8 +- java-gkerecommender/README.md | 8 +- java-grafeas/README.md | 8 +- java-gsuite-addons/README.md | 8 +- java-health/README.md | 8 +- java-hypercomputecluster/README.md | 8 +- java-iam-admin/README.md | 8 +- java-iam-policy/README.md | 8 +- .../google/iam/v3/AccessPoliciesClient.java | 1640 ++ .../google/iam/v3/AccessPoliciesSettings.java | 353 + .../google/iam/v3/PolicyBindingsClient.java | 53 +- .../com/google/iam/v3/gapic_metadata.json | 27 + .../java/com/google/iam/v3/package-info.java | 20 + .../iam/v3/stub/AccessPoliciesStub.java | 119 + .../v3/stub/AccessPoliciesStubSettings.java | 832 + .../GrpcAccessPoliciesCallableFactory.java | 115 + .../iam/v3/stub/GrpcAccessPoliciesStub.java | 425 + ...HttpJsonAccessPoliciesCallableFactory.java | 103 + .../v3/stub/HttpJsonAccessPoliciesStub.java | 664 + .../v3/stub/HttpJsonPolicyBindingsStub.java | 1 + .../com.google.iam.v3/reflect-config.json | 225 + .../v3/AccessPoliciesClientHttpJsonTest.java | 949 + .../iam/v3/AccessPoliciesClientTest.java | 868 + .../com/google/iam/v3/MockAccessPolicies.java | 59 + .../google/iam/v3/MockAccessPoliciesImpl.java | 190 + .../com/google/iam/v3/AccessPoliciesGrpc.java | 1061 ++ .../com/google/iam/v3/PolicyBindingsGrpc.java | 40 +- .../google/iam/v3/AccessPoliciesProto.java | 276 + .../java/com/google/iam/v3/AccessPolicy.java | 2536 +++ .../google/iam/v3/AccessPolicyDetails.java | 961 + .../iam/v3/AccessPolicyDetailsOrBuilder.java | 93 + .../com/google/iam/v3/AccessPolicyName.java | 452 + .../google/iam/v3/AccessPolicyOrBuilder.java | 355 + .../iam/v3/AccessPolicyResourcesProto.java | 213 + .../com/google/iam/v3/AccessPolicyRule.java | 4517 +++++ .../iam/v3/AccessPolicyRuleOrBuilder.java | 638 + .../iam/v3/CreateAccessPolicyRequest.java | 1311 ++ .../CreateAccessPolicyRequestOrBuilder.java | 166 + .../iam/v3/DeleteAccessPolicyRequest.java | 1049 ++ .../DeleteAccessPolicyRequestOrBuilder.java | 126 + .../google/iam/v3/GetAccessPolicyRequest.java | 650 + .../v3/GetAccessPolicyRequestOrBuilder.java | 70 + .../iam/v3/ListAccessPoliciesRequest.java | 1002 ++ .../ListAccessPoliciesRequestOrBuilder.java | 127 + .../iam/v3/ListAccessPoliciesResponse.java | 1117 ++ .../ListAccessPoliciesResponseOrBuilder.java | 112 + .../iam/v3/ListPolicyBindingsRequest.java | 33 +- .../ListPolicyBindingsRequestOrBuilder.java | 9 +- .../java/com/google/iam/v3/PolicyBinding.java | 814 +- .../google/iam/v3/PolicyBindingOrBuilder.java | 51 +- .../iam/v3/PolicyBindingResourcesProto.java | 29 +- .../iam/v3/PolicyBindingsServiceProto.java | 101 +- .../v3/SearchAccessPolicyBindingsRequest.java | 990 ++ ...hAccessPolicyBindingsRequestOrBuilder.java | 123 + .../SearchAccessPolicyBindingsResponse.java | 1120 ++ ...AccessPolicyBindingsResponseOrBuilder.java | 112 + .../v3/SearchTargetPolicyBindingsRequest.java | 264 +- ...hTargetPolicyBindingsRequestOrBuilder.java | 47 +- .../iam/v3/UpdateAccessPolicyRequest.java | 856 + .../UpdateAccessPolicyRequestOrBuilder.java | 91 + .../iam/v3/access_policies_service.proto | 329 + .../iam/v3/access_policy_resources.proto | 216 + .../google/iam/v3/operation_metadata.proto | 2 +- .../iam/v3/policy_binding_resources.proto | 78 +- .../iam/v3/policy_bindings_service.proto | 31 +- ...pal_access_boundary_policies_service.proto | 2 +- ...pal_access_boundary_policy_resources.proto | 2 +- java-iamcredentials/README.md | 8 +- java-iap/README.md | 8 +- java-ids/README.md | 8 +- java-infra-manager/README.md | 8 +- java-iot/README.md | 8 +- .../README.md | 8 +- .../README.md | 8 +- java-kms/README.md | 8 +- java-kmsinventory/README.md | 8 +- java-language/README.md | 8 +- java-licensemanager/README.md | 8 +- java-life-sciences/README.md | 8 +- java-locationfinder/README.md | 8 +- java-logging/README.md | 8 +- java-lustre/README.md | 8 +- java-maintenance/README.md | 8 +- java-managed-identities/README.md | 8 +- java-managedkafka/README.md | 8 +- java-maps-addressvalidation/README.md | 8 +- java-maps-area-insights/README.md | 8 +- java-maps-fleetengine-delivery/README.md | 8 +- java-maps-fleetengine/README.md | 8 +- java-maps-geocode/README.md | 8 +- java-maps-isochrones/README.md | 8 +- java-maps-mapmanagement/README.md | 8 +- java-maps-mapsplatformdatasets/README.md | 8 +- java-maps-navconnect/README.md | 8 +- java-maps-places/README.md | 8 +- java-maps-routeoptimization/README.md | 8 +- java-maps-routing/README.md | 8 +- java-maps-solar/README.md | 8 +- java-marketingplatformadminapi/README.md | 8 +- java-mediatranslation/README.md | 8 +- java-meet/README.md | 8 +- java-memcache/README.md | 8 +- java-migrationcenter/README.md | 8 +- java-modelarmor/README.md | 8 +- java-monitoring-dashboards/README.md | 8 +- java-monitoring-metricsscope/README.md | 8 +- java-monitoring/README.md | 8 +- java-netapp/README.md | 8 +- java-network-management/README.md | 8 +- java-network-security/README.md | 8 +- java-networkconnectivity/README.md | 8 +- java-networkservices/README.md | 8 +- java-notebooks/README.md | 8 +- java-optimization/README.md | 8 +- java-oracledatabase/README.md | 8 +- java-orchestration-airflow/README.md | 8 +- java-orgpolicy/README.md | 8 +- java-os-config/README.md | 8 +- java-os-login/README.md | 8 +- java-parallelstore/README.md | 8 +- java-parametermanager/README.md | 8 +- java-phishingprotection/README.md | 8 +- java-policy-troubleshooter/README.md | 8 +- java-policysimulator/README.md | 8 +- java-private-catalog/README.md | 8 +- java-privilegedaccessmanager/README.md | 8 +- java-productregistry/README.md | 8 +- java-profiler/README.md | 8 +- java-publicca/README.md | 8 +- java-pubsub/README.md | 8 +- java-rapidmigrationassessment/README.md | 8 +- java-recaptchaenterprise/README.md | 8 +- java-recommendations-ai/README.md | 8 +- java-recommender/README.md | 8 +- java-redis-cluster/README.md | 8 +- java-redis/README.md | 8 +- java-resourcemanager/README.md | 8 +- java-retail/README.md | 8 +- java-run/README.md | 8 +- java-saasservicemgmt/README.md | 8 +- java-scheduler/README.md | 8 +- java-secretmanager/README.md | 8 +- java-securesourcemanager/README.md | 8 +- java-security-private-ca/README.md | 8 +- java-securitycenter-settings/README.md | 8 +- java-securitycenter/README.md | 8 +- java-securitycentermanagement/README.md | 8 +- java-securityposture/README.md | 8 +- java-service-control/README.md | 8 +- java-service-management/README.md | 8 +- java-service-usage/README.md | 8 +- java-servicedirectory/README.md | 8 +- java-servicehealth/README.md | 8 +- java-shell/README.md | 8 +- java-shopping-css/README.md | 8 +- java-shopping-merchant-accounts/README.md | 8 +- java-shopping-merchant-conversions/README.md | 8 +- java-shopping-merchant-datasources/README.md | 8 +- java-shopping-merchant-inventories/README.md | 8 +- java-shopping-merchant-lfp/README.md | 8 +- .../README.md | 8 +- .../README.md | 8 +- java-shopping-merchant-products/README.md | 8 +- java-shopping-merchant-promotions/README.md | 8 +- java-shopping-merchant-quota/README.md | 8 +- java-shopping-merchant-reports/README.md | 8 +- java-shopping-merchant-reviews/README.md | 8 +- java-spanner/README.md | 23 +- java-spanneradapter/README.md | 8 +- java-speech/README.md | 8 +- java-sql/README.md | 8 +- java-storage-transfer/README.md | 8 +- java-storage/README.md | 10 +- java-storagebatchoperations/README.md | 8 +- java-storageinsights/README.md | 8 +- java-talent/README.md | 8 +- java-tasks/README.md | 8 +- java-telcoautomation/README.md | 8 +- java-texttospeech/README.md | 8 +- java-tpu/README.md | 8 +- java-trace/README.md | 8 +- java-translate/README.md | 8 +- java-valkey/README.md | 8 +- java-vectorsearch/README.md | 8 +- java-video-intelligence/README.md | 8 +- java-video-live-stream/README.md | 8 +- java-video-stitcher/README.md | 8 +- java-video-transcoder/README.md | 8 +- java-vision/README.md | 8 +- java-visionai/README.md | 8 +- java-vmmigration/README.md | 8 +- java-vmwareengine/README.md | 8 +- java-vpcaccess/README.md | 8 +- java-webrisk/README.md | 8 +- java-websecurityscanner/README.md | 8 +- java-workflow-executions/README.md | 8 +- java-workflows/README.md | 8 +- java-workloadmanager/README.md | 8 +- java-workspaceevents/README.md | 8 +- java-workstations/README.md | 8 +- 419 files changed, 57549 insertions(+), 6863 deletions(-) create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessageResult.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessageResultOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesResponse.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesResponseOrBuilder.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessagesSpacenameString.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessagesStringString.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FieldWarning.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FieldWarningOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GoogleUserIdData.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GoogleUserIdDataOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerProvidedIdData.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerProvidedIdDataOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersRequest.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersRequestOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersResponse.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersResponseOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/WarningReason.java create mode 100644 java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/removeallaudiencemembers/AsyncRemoveAllAudienceMembers.java create mode 100644 java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/removeallaudiencemembers/SyncRemoveAllAudienceMembers.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/AccessPoliciesClient.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/AccessPoliciesSettings.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/AccessPoliciesStub.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/AccessPoliciesStubSettings.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/GrpcAccessPoliciesCallableFactory.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/GrpcAccessPoliciesStub.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonAccessPoliciesCallableFactory.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonAccessPoliciesStub.java create mode 100644 java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/AccessPoliciesClientHttpJsonTest.java create mode 100644 java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/AccessPoliciesClientTest.java create mode 100644 java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/MockAccessPolicies.java create mode 100644 java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/MockAccessPoliciesImpl.java create mode 100644 java-iam/grpc-google-iam-v3/src/main/java/com/google/iam/v3/AccessPoliciesGrpc.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPoliciesProto.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicy.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyDetails.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyDetailsOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyName.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyResourcesProto.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyRule.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyRuleOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/CreateAccessPolicyRequest.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/CreateAccessPolicyRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/DeleteAccessPolicyRequest.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/DeleteAccessPolicyRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/GetAccessPolicyRequest.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/GetAccessPolicyRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesRequest.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesResponse.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesResponseOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsRequest.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsResponse.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsResponseOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/UpdateAccessPolicyRequest.java create mode 100644 java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/UpdateAccessPolicyRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/access_policies_service.proto create mode 100644 java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/access_policy_resources.proto diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 948d60ef1911..1b446ae078fc 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-accessapproval' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.95.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-accessapproval/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 19dc821869fd..9979912bebfd 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.95.0 + 1.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-identity-accesscontextmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.95.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.95.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-identity-accesscontextmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/README.md b/java-admanager/README.md index 38f69da70c63..5040bc4aae96 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads ad-manager - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.53.0' +implementation 'com.google.api-ads:ad-manager:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.53.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.54.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index dc641636c1c4..fc590262a67c 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.83.0 + 0.84.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-advisorynotifications' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.83.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.84.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-advisorynotifications/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-agentidentity/README.md b/java-agentidentity/README.md index 81d7a77a3509..93b827ce8822 100644 --- a/java-agentidentity/README.md +++ b/java-agentidentity/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-agentidentity - 0.0.0 + 0.1.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-agentidentity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-agentidentity:0.0.0' +implementation 'com.google.cloud:google-cloud-agentidentity:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-agentidentity" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-agentidentity" % "0.1.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentidentity/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-agentidentity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentidentity/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentidentity/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-agentregistry/README.md b/java-agentregistry/README.md index 910004c8a9cb..ded798ce387d 100644 --- a/java-agentregistry/README.md +++ b/java-agentregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-agentregistry - 0.1.0 + 0.2.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-agentregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-agentregistry:0.1.0' +implementation 'com.google.cloud:google-cloud-agentregistry:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.2.0" ``` ## Authentication @@ -188,7 +188,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentregistry/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-agentregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.2.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 6361d51ece35..12cd2f3992d9 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.95.0 + 3.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-aiplatform' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.95.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-aiplatform/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index 4ff9c1787188..8ac3ecbd615f 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.72.0 + 0.73.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb-connectors' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.72.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.73.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.73.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/README.md b/java-alloydb/README.md index e082514addfd..5063fea9d1ca 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.83.0 + 0.84.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.83.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.84.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index a8a564362895..adc21f56fcf0 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.104.0 + 0.105.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.104.0' +implementation 'com.google.analytics:google-analytics-admin:0.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.104.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.105.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 5ef18b2b2fa1..9377341a4798 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.105.0 + 0.106.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-data' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.105.0' +implementation 'com.google.analytics:google-analytics-data:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.105.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.106.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-data/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.106.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index 12d202e3548e..38cd65b63b06 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.91.0 + 0.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-analyticshub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.91.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-analyticshub/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index 9aeaa3faf814..bea944eecb1d 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-api-gateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.94.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-api-gateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index f0b8f1e738a9..f3e0b6fc82cf 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apigee-connect' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.94.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-connect/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apihub/README.md b/java-apihub/README.md index d81d5731c2f0..7c96bc00e07c 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.47.0 + 0.48.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apihub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.47.0' +implementation 'com.google.cloud:google-cloud-apihub:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.48.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/README.md b/java-apikeys/README.md index ed4715e93c64..42c52b7caa40 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.92.0 + 0.93.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apikeys' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.92.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.93.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index 7b31cf68473d..a4c963167494 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-appengine-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.94.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appengine-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apphub/README.md b/java-apphub/README.md index b1dd85dc90fb..36bb9157ca0f 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.58.0 + 0.59.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apphub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.58.0' +implementation 'com.google.cloud:google-cloud-apphub:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.59.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apphub/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appoptimize/README.md b/java-appoptimize/README.md index 88f8d0b44c5d..7f593e0421e8 100644 --- a/java-appoptimize/README.md +++ b/java-appoptimize/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appoptimize - 0.4.0 + 0.5.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-appoptimize' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appoptimize:0.4.0' +implementation 'com.google.cloud:google-cloud-appoptimize:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.5.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appoptimize.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.5.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index 5a03df3033b1..89ad8bb3f62c 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.98.0 + 0.99.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.area120:google-area120-tables' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.98.0' +implementation 'com.google.area120:google-area120-tables:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.98.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.99.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-area120-tables/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.99.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index cd647198e34b..1d17719cce97 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.93.0 + 1.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-artifact-registry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.93.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-asset/README.md b/java-asset/README.md index 2f27a7551faa..a79d09d0e337 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.98.0 + 3.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-asset' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.98.0' +implementation 'com.google.cloud:google-cloud-asset:3.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.99.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 87ef70481a1e..5b31c170366c 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-assured-workloads' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.94.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-assured-workloads/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-auditmanager/README.md b/java-auditmanager/README.md index f72c88098f9d..3137eb0d33dc 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-auditmanager - 0.12.0 + 0.13.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-auditmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-auditmanager:0.12.0' +implementation 'com.google.cloud:google-cloud-auditmanager:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.13.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-auditmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-automl/README.md b/java-automl/README.md index 262b8f3fd1f7..a67463516976 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-automl' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.94.0' +implementation 'com.google.cloud:google-cloud-automl:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.95.0" ``` ## Authentication @@ -192,7 +192,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-automl/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backstory/README.md b/java-backstory/README.md index 83548ad39f29..c1c4d49f47a1 100644 --- a/java-backstory/README.md +++ b/java-backstory/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backstory - 0.2.0 + 0.3.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-backstory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backstory:0.2.0' +implementation 'com.google.cloud:google-cloud-backstory:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.3.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backstory/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backstory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backupdr/README.md b/java-backupdr/README.md index addbceb91e14..249566533447 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.53.0 + 0.54.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-backupdr' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.53.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.54.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 66afd36b6099..25641fb43bfa 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.94.0 + 0.95.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bare-metal-solution' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.94.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.95.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/README.md b/java-batch/README.md index 194a030275d7..d561e1abc1e4 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.94.0 + 0.95.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-batch' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.94.0' +implementation 'com.google.cloud:google-cloud-batch:0.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.95.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-batch/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index a978575abe00..7af79199c885 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.92.0 + 0.93.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.92.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.93.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnections/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 08634b1d5c67..c632e3a5aa49 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.92.0 + 0.93.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.92.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.93.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnectors/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index e8e9baedb969..bc4a3a8c3659 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.92.0 + 0.93.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.92.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.93.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appgateways/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index c2abd7646eae..9f016ee69b4c 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.92.0 + 0.93.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.92.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.93.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientconnectorservices/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index a75b8e5a63ac..f7391e5e8fce 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.92.0 + 0.93.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.92.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.93.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientgateways/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-biglake/README.md b/java-biglake/README.md index 631e321b694e..6cdc36b18a16 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.82.0 + 0.83.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-biglake' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.82.0' +implementation 'com.google.cloud:google-cloud-biglake:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.83.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index e6fad9074f37..a87244f6f8c4 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.89.0 + 2.90.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquery-data-exchange' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.89.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.90.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquery-data-exchange/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index e253fa8e8f4d..0fcf2276a509 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.96.0 + 2.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigqueryconnection' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.96.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 1105f975177f..66c6604b6c0e 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.91.0 + 0.92.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquerydatapolicy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.91.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.92.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index b3cef4c1033e..d69352c4185f 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigquerydatatransfer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.94.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatatransfer/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index 12277c62fca0..f6a35f8865fa 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.97.0 + 0.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquerymigration' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.97.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerymigration/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 514e8ff9fec8..3c8487088023 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigqueryreservation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.95.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigqueryreservation/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerystorage/README.md b/java-bigquerystorage/README.md index 461dbe97ecce..b8245a3911ec 100644 --- a/java-bigquerystorage/README.md +++ b/java-bigquerystorage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerystorage - 3.30.0 + 3.31.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigquerystorage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerystorage:3.30.0' +implementation 'com.google.cloud:google-cloud-bigquerystorage:3.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.31.0" ``` ## Authentication @@ -233,7 +233,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerystorage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigtable/README.md b/java-bigtable/README.md index d8211b682542..6210b2a62c79 100644 --- a/java-bigtable/README.md +++ b/java-bigtable/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigtable - 2.80.0 + 2.81.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigtable' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigtable:2.80.0' +implementation 'com.google.cloud:google-cloud-bigtable:2.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.81.0" ``` ## Authentication @@ -450,7 +450,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigtable.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billing/README.md b/java-billing/README.md index c03bdbe73779..45c0535abf68 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-billing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.94.0' +implementation 'com.google.cloud:google-cloud-billing:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billing/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 07b6a1a5b851..6ac9eec12f21 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-billingbudgets' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.94.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billingbudgets/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 97dc9de0a923..16def0699bd8 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.93.0 + 1.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-binary-authorization' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.93.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-capacityplanner/README.md b/java-capacityplanner/README.md index 7e3d55748105..2a9e7f0f265a 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.17.0 + 0.18.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-capacityplanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.17.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.18.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-capacityplanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.18.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index c9160e3047eb..1308575b5196 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.97.0 + 0.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-certificate-manager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.97.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-certificate-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ces/README.md b/java-ces/README.md index 5cea5b47b911..0c09b09d1818 100644 --- a/java-ces/README.md +++ b/java-ces/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ces - 0.10.0 + 0.11.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-ces' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ces:0.10.0' +implementation 'com.google.cloud:google-cloud-ces:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.11.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ces.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-channel/README.md b/java-channel/README.md index ae85739d5c98..5f5193e60caa 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.98.0 + 3.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-channel' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.98.0' +implementation 'com.google.cloud:google-cloud-channel:3.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-channel/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.99.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/README.md b/java-chat/README.md index 6543873d7548..715015b086e6 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.58.0 + 0.59.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-chat' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.58.0' +implementation 'com.google.cloud:google-cloud-chat:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.59.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chat/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index 9e27038ec72d..8267de7c40eb 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -233,6 +233,31 @@ * * * + *

SearchMessages + *

Searches for messages in Google Chat that the calling user has access to. Returns a list of messages matching the search criteria. + *

To search across all spaces the user has access to, set `parent` to `spaces/-`. Using any other value for `parent` results in an `INVALID_ARGUMENT` error. The returned messages have their `name` field populated with the full resource name, which includes the specific `space` in which the message resides. + *

This API doesn't return all message types. The types of messages listed below aren't included in the response. Use [ListMessages][google.chat.v1.ChatService.ListMessages] to list all messages. + *

- Private Messages that are visible to the authenticated user. - Messages posted by Chat apps in spaces or group chats. - Messages in a Chat app DM. - Messages from blocked users. - Messages in spaces that the caller has muted. + *

Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

- `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * *

GetAttachment *

Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download). For an example, see [Get metadata about a message attachment](https://developers.google.com/workspace/chat/get-media-attachments). *

Requires [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): @@ -2862,6 +2887,450 @@ public final UnaryCallable deleteMessageCallable() return stub.deleteMessageCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches for messages in Google Chat that the calling user has access to. Returns a list of + * messages matching the search criteria. + * + *

To search across all spaces the user has access to, set `parent` to `spaces/-`. Using any + * other value for `parent` results in an `INVALID_ARGUMENT` error. The returned messages have + * their `name` field populated with the full resource name, which includes the specific `space` + * in which the message resides. + * + *

This API doesn't return all message types. The types of messages listed below aren't + * included in the response. Use [ListMessages][google.chat.v1.ChatService.ListMessages] to list + * all messages. + * + *

- Private Messages that are visible to the authenticated user. - Messages posted by Chat + * apps in spaces or group chats. - Messages in a Chat app DM. - Messages from blocked users. - + * Messages in spaces that the caller has muted. + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.messages.readonly` - + * `https://www.googleapis.com/auth/chat.messages` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   SpaceName parent = SpaceName.of("[SPACE]");
+   *   String filter = "filter-1274492040";
+   *   for (SearchMessageResult element :
+   *       chatServiceClient.searchMessages(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the space to search within. + *

To search across all spaces the user has access to, set this field to `spaces/-`. Using + * any other value for `parent` results in an `INVALID_ARGUMENT` error. + *

To limit the search to one or more spaces, use `space.name` or `space.display_name` in + * the `filter`. + * @param filter Required. A search query. + *

The query can specify one or more search keywords, which are used to filter the results, + *

You can also filter the results using the following message fields: + *

- `create_time`: Accepts a timestamp in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported comparison + * operators are: `<` and `>=`. - `sender.name`: The resource name of the sender + * (`users/{user}`). Only supports `=`. You can use the e-mail as an alias for `{user}`. For + * example, `users/example{@literal @}gmail.com`, where `example{@literal @}gmail.com` is the + * e-mail of the Google Chat user. - `space.name`: The resource name of the space where the + * message is posted. (`spaces/{space}`). Only supports `=`. If this filter is not set, the + * search is performed across all direct messages and spaces the user has access to as a space + * member. - `space.display_name`: Supports the operator `:` (has) and filters spaces based on + * a partial match of their display name. Results are limited to the top five space matches. + * For example, `space.display_name:Project` searches for messages in the top five spaces that + * contain the word "Project" in their display names. - `attachment`: Supports the operator + * `:*` (has any) to check for the presence of attachments. If `attachment:*` is + * specified, only messages that have at least one attachment are returned. - + * `annotations.user_mentions.user.name`: The resource name of the mentioned user + * (`users/{user}`). Only supports `:` (has). For example: + * `annotations.user_mentions.user.name:"users/1234567890"` returns only messages that contain + * a mention to the specified user. Alternatively, the alias `me` can be used to filter for + * messages that mention the caller user, for example: + * `annotations.user_mentions.user.name:users/me`. You can also use the e-mail as an alias for + * `{user}`, for example, `users/example{@literal @}gmail.com`. + *

For advanced filtering, the following functions are also available: + *

- `has_link()`: Returns only messages that have at least one hyperlink in the message + * text. - `is_unread()`: Filters out messages that have been read by the calling user. + *

Using the `space.display_name` filter requires that the calling credentials include one + * of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

- `https://www.googleapis.com/auth/chat.spaces.readonly` - + * `https://www.googleapis.com/auth/chat.spaces` + *

Using the `is_unread()` filter requires that the calling credentials include one of the + * following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

- `https://www.googleapis.com/auth/chat.users.readstate.readonly` - + * `https://www.googleapis.com/auth/chat.users.readstate` + *

Across different fields, only `AND` operators are supported. A valid example is + * `sender.name = "users/1234567890" AND is_unread()`. The word `AND` is optional and is + * implied if omitted. For example, `sender.name = "users/1234567890" is_unread()` is valid + * and is equivalent to the previous example. An invalid example is `sender.name = + * "users/1234567890" OR is_unread()` because `OR` is not supported between different fields. + *

Among the same field: + *

- `create_time` supports only `AND`, and can only be used to represent an interval, such + * as `create_time >= "2022-01-01T00:00:00+00:00" AND create_time < + * "2023-01-01T00:00:00+00:00"`. - `sender.name` supports only the `OR` operator, for example: + * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`. - `space.name` + * supports only the `OR` operator, for example: `space.name = "spaces/ABCDEFGH" OR space.name + * = "spaces/QWERTYUI"`. - `space.display_name` supports the operators `AND` and `OR`, but not + * a mix of both. For example: `space.display_name:Project AND space.display_name:Tasks` + * returns messages that are in spaces with display names containing both `Project` and + * `Tasks`, whereas `space.display_name:Project OR space.display_name:Tasks` returns messages + * that are in spaces with display names containing either `Project` or `Tasks` or both. - + * `annotations.user_mentions.user.name` supports the operators `AND` and `OR`, but not a mix + * of both. For example: `annotations.user_mentions.user.name:"users/1234567890" AND + * annotations.user_mentions.user.name:"users/0987654321"` returns only messages that mentions + * both users, whereas `annotations.user_mentions.user.name:"users/1234567890" OR + * annotations.user_mentions.user.name:"users/0987654321"` returns messages that mention + * either user or both. + *

Parentheses are required to disambiguate operator precedence when combining `AND` and + * `OR` operators in the same query. For example: `(sender.name="users/me" OR + * sender.name="users/123456") AND is_unread()`. Otherwise, parentheses are optional. + *

The following example queries are valid: + *

``` "Pending reports" AND create_time >= "2023-01-01T00:00:00Z" + *

sender.name = "users/example{@literal @}gmail.com" + *

annotations.user_mentions.user.name:"users/0987654321" + *

attachment:* AND space.name = "spaces/ABCDEFGH" + *

tasks AND is_unread() AND sender.name = "users/1234567890" + *

"things to do" "urgent" + *

(sender.name = "users/1234567890") AND (create_time < "2023-05-01T00:00:00Z") + *

tasks AND space.name = "spaces/ABCDEFGH" AND has_link() + *

"project one" is_unread() + *

space.display_name:Project tasks ``` + *

The maximum query length is 1,000 characters. + *

Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchMessagesPagedResponse searchMessages( + @Nullable SpaceName parent, String filter) { + SearchMessagesRequest request = + SearchMessagesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return searchMessages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches for messages in Google Chat that the calling user has access to. Returns a list of + * messages matching the search criteria. + * + *

To search across all spaces the user has access to, set `parent` to `spaces/-`. Using any + * other value for `parent` results in an `INVALID_ARGUMENT` error. The returned messages have + * their `name` field populated with the full resource name, which includes the specific `space` + * in which the message resides. + * + *

This API doesn't return all message types. The types of messages listed below aren't + * included in the response. Use [ListMessages][google.chat.v1.ChatService.ListMessages] to list + * all messages. + * + *

- Private Messages that are visible to the authenticated user. - Messages posted by Chat + * apps in spaces or group chats. - Messages in a Chat app DM. - Messages from blocked users. - + * Messages in spaces that the caller has muted. + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.messages.readonly` - + * `https://www.googleapis.com/auth/chat.messages` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   String parent = SpaceName.of("[SPACE]").toString();
+   *   String filter = "filter-1274492040";
+   *   for (SearchMessageResult element :
+   *       chatServiceClient.searchMessages(parent, filter).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the space to search within. + *

To search across all spaces the user has access to, set this field to `spaces/-`. Using + * any other value for `parent` results in an `INVALID_ARGUMENT` error. + *

To limit the search to one or more spaces, use `space.name` or `space.display_name` in + * the `filter`. + * @param filter Required. A search query. + *

The query can specify one or more search keywords, which are used to filter the results, + *

You can also filter the results using the following message fields: + *

- `create_time`: Accepts a timestamp in + * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported comparison + * operators are: `<` and `>=`. - `sender.name`: The resource name of the sender + * (`users/{user}`). Only supports `=`. You can use the e-mail as an alias for `{user}`. For + * example, `users/example{@literal @}gmail.com`, where `example{@literal @}gmail.com` is the + * e-mail of the Google Chat user. - `space.name`: The resource name of the space where the + * message is posted. (`spaces/{space}`). Only supports `=`. If this filter is not set, the + * search is performed across all direct messages and spaces the user has access to as a space + * member. - `space.display_name`: Supports the operator `:` (has) and filters spaces based on + * a partial match of their display name. Results are limited to the top five space matches. + * For example, `space.display_name:Project` searches for messages in the top five spaces that + * contain the word "Project" in their display names. - `attachment`: Supports the operator + * `:*` (has any) to check for the presence of attachments. If `attachment:*` is + * specified, only messages that have at least one attachment are returned. - + * `annotations.user_mentions.user.name`: The resource name of the mentioned user + * (`users/{user}`). Only supports `:` (has). For example: + * `annotations.user_mentions.user.name:"users/1234567890"` returns only messages that contain + * a mention to the specified user. Alternatively, the alias `me` can be used to filter for + * messages that mention the caller user, for example: + * `annotations.user_mentions.user.name:users/me`. You can also use the e-mail as an alias for + * `{user}`, for example, `users/example{@literal @}gmail.com`. + *

For advanced filtering, the following functions are also available: + *

- `has_link()`: Returns only messages that have at least one hyperlink in the message + * text. - `is_unread()`: Filters out messages that have been read by the calling user. + *

Using the `space.display_name` filter requires that the calling credentials include one + * of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

- `https://www.googleapis.com/auth/chat.spaces.readonly` - + * `https://www.googleapis.com/auth/chat.spaces` + *

Using the `is_unread()` filter requires that the calling credentials include one of the + * following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

- `https://www.googleapis.com/auth/chat.users.readstate.readonly` - + * `https://www.googleapis.com/auth/chat.users.readstate` + *

Across different fields, only `AND` operators are supported. A valid example is + * `sender.name = "users/1234567890" AND is_unread()`. The word `AND` is optional and is + * implied if omitted. For example, `sender.name = "users/1234567890" is_unread()` is valid + * and is equivalent to the previous example. An invalid example is `sender.name = + * "users/1234567890" OR is_unread()` because `OR` is not supported between different fields. + *

Among the same field: + *

- `create_time` supports only `AND`, and can only be used to represent an interval, such + * as `create_time >= "2022-01-01T00:00:00+00:00" AND create_time < + * "2023-01-01T00:00:00+00:00"`. - `sender.name` supports only the `OR` operator, for example: + * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`. - `space.name` + * supports only the `OR` operator, for example: `space.name = "spaces/ABCDEFGH" OR space.name + * = "spaces/QWERTYUI"`. - `space.display_name` supports the operators `AND` and `OR`, but not + * a mix of both. For example: `space.display_name:Project AND space.display_name:Tasks` + * returns messages that are in spaces with display names containing both `Project` and + * `Tasks`, whereas `space.display_name:Project OR space.display_name:Tasks` returns messages + * that are in spaces with display names containing either `Project` or `Tasks` or both. - + * `annotations.user_mentions.user.name` supports the operators `AND` and `OR`, but not a mix + * of both. For example: `annotations.user_mentions.user.name:"users/1234567890" AND + * annotations.user_mentions.user.name:"users/0987654321"` returns only messages that mentions + * both users, whereas `annotations.user_mentions.user.name:"users/1234567890" OR + * annotations.user_mentions.user.name:"users/0987654321"` returns messages that mention + * either user or both. + *

Parentheses are required to disambiguate operator precedence when combining `AND` and + * `OR` operators in the same query. For example: `(sender.name="users/me" OR + * sender.name="users/123456") AND is_unread()`. Otherwise, parentheses are optional. + *

The following example queries are valid: + *

``` "Pending reports" AND create_time >= "2023-01-01T00:00:00Z" + *

sender.name = "users/example{@literal @}gmail.com" + *

annotations.user_mentions.user.name:"users/0987654321" + *

attachment:* AND space.name = "spaces/ABCDEFGH" + *

tasks AND is_unread() AND sender.name = "users/1234567890" + *

"things to do" "urgent" + *

(sender.name = "users/1234567890") AND (create_time < "2023-05-01T00:00:00Z") + *

tasks AND space.name = "spaces/ABCDEFGH" AND has_link() + *

"project one" is_unread() + *

space.display_name:Project tasks ``` + *

The maximum query length is 1,000 characters. + *

Invalid queries are rejected by the server with an `INVALID_ARGUMENT` error. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchMessagesPagedResponse searchMessages(String parent, String filter) { + SearchMessagesRequest request = + SearchMessagesRequest.newBuilder().setParent(parent).setFilter(filter).build(); + return searchMessages(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches for messages in Google Chat that the calling user has access to. Returns a list of + * messages matching the search criteria. + * + *

To search across all spaces the user has access to, set `parent` to `spaces/-`. Using any + * other value for `parent` results in an `INVALID_ARGUMENT` error. The returned messages have + * their `name` field populated with the full resource name, which includes the specific `space` + * in which the message resides. + * + *

This API doesn't return all message types. The types of messages listed below aren't + * included in the response. Use [ListMessages][google.chat.v1.ChatService.ListMessages] to list + * all messages. + * + *

- Private Messages that are visible to the authenticated user. - Messages posted by Chat + * apps in spaces or group chats. - Messages in a Chat app DM. - Messages from blocked users. - + * Messages in spaces that the caller has muted. + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.messages.readonly` - + * `https://www.googleapis.com/auth/chat.messages` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   SearchMessagesRequest request =
+   *       SearchMessagesRequest.newBuilder()
+   *           .setParent(SpaceName.of("[SPACE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (SearchMessageResult element : chatServiceClient.searchMessages(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 SearchMessagesPagedResponse searchMessages(SearchMessagesRequest request) { + return searchMessagesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches for messages in Google Chat that the calling user has access to. Returns a list of + * messages matching the search criteria. + * + *

To search across all spaces the user has access to, set `parent` to `spaces/-`. Using any + * other value for `parent` results in an `INVALID_ARGUMENT` error. The returned messages have + * their `name` field populated with the full resource name, which includes the specific `space` + * in which the message resides. + * + *

This API doesn't return all message types. The types of messages listed below aren't + * included in the response. Use [ListMessages][google.chat.v1.ChatService.ListMessages] to list + * all messages. + * + *

- Private Messages that are visible to the authenticated user. - Messages posted by Chat + * apps in spaces or group chats. - Messages in a Chat app DM. - Messages from blocked users. - + * Messages in spaces that the caller has muted. + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.messages.readonly` - + * `https://www.googleapis.com/auth/chat.messages` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   SearchMessagesRequest request =
+   *       SearchMessagesRequest.newBuilder()
+   *           .setParent(SpaceName.of("[SPACE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       chatServiceClient.searchMessagesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (SearchMessageResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchMessagesPagedCallable() { + return stub.searchMessagesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches for messages in Google Chat that the calling user has access to. Returns a list of + * messages matching the search criteria. + * + *

To search across all spaces the user has access to, set `parent` to `spaces/-`. Using any + * other value for `parent` results in an `INVALID_ARGUMENT` error. The returned messages have + * their `name` field populated with the full resource name, which includes the specific `space` + * in which the message resides. + * + *

This API doesn't return all message types. The types of messages listed below aren't + * included in the response. Use [ListMessages][google.chat.v1.ChatService.ListMessages] to list + * all messages. + * + *

- Private Messages that are visible to the authenticated user. - Messages posted by Chat + * apps in spaces or group chats. - Messages in a Chat app DM. - Messages from blocked users. - + * Messages in spaces that the caller has muted. + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.messages.readonly` - + * `https://www.googleapis.com/auth/chat.messages` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   SearchMessagesRequest request =
+   *       SearchMessagesRequest.newBuilder()
+   *           .setParent(SpaceName.of("[SPACE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     SearchMessagesResponse response = chatServiceClient.searchMessagesCallable().call(request);
+   *     for (SearchMessageResult element : response.getResultsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchMessagesCallable() { + return stub.searchMessagesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the metadata of a message attachment. The attachment data is fetched using the [media @@ -10045,6 +10514,86 @@ protected ListMembershipsFixedSizeCollection createCollection( } } + public static class SearchMessagesPagedResponse + extends AbstractPagedListResponse< + SearchMessagesRequest, + SearchMessagesResponse, + SearchMessageResult, + SearchMessagesPage, + SearchMessagesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchMessagesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchMessagesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchMessagesPagedResponse(SearchMessagesPage page) { + super(page, SearchMessagesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchMessagesPage + extends AbstractPage< + SearchMessagesRequest, SearchMessagesResponse, SearchMessageResult, SearchMessagesPage> { + + private SearchMessagesPage( + @Nullable PageContext + context, + @Nullable SearchMessagesResponse response) { + super(context, response); + } + + private static SearchMessagesPage createEmptyPage() { + return new SearchMessagesPage(null, null); + } + + @Override + protected SearchMessagesPage createPage( + @Nullable PageContext + context, + @Nullable SearchMessagesResponse response) { + return new SearchMessagesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchMessagesFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchMessagesRequest, + SearchMessagesResponse, + SearchMessageResult, + SearchMessagesPage, + SearchMessagesFixedSizeCollection> { + + private SearchMessagesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchMessagesFixedSizeCollection createEmptyCollection() { + return new SearchMessagesFixedSizeCollection(null, 0); + } + + @Override + protected SearchMessagesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new SearchMessagesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListSpacesPagedResponse extends AbstractPagedListResponse< ListSpacesRequest, diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java index 3d4b7387930b..ee82d80a0203 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java @@ -25,6 +25,7 @@ import static com.google.chat.v1.ChatServiceClient.ListSectionsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; +import static com.google.chat.v1.ChatServiceClient.SearchMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.SearchSpacesPagedResponse; import com.google.api.core.ApiFunction; @@ -138,6 +139,13 @@ public UnaryCallSettings deleteMessageSettings() { return ((ChatServiceStubSettings) getStubSettings()).deleteMessageSettings(); } + /** Returns the object with the settings used for calls to searchMessages. */ + public PagedCallSettings< + SearchMessagesRequest, SearchMessagesResponse, SearchMessagesPagedResponse> + searchMessagesSettings() { + return ((ChatServiceStubSettings) getStubSettings()).searchMessagesSettings(); + } + /** Returns the object with the settings used for calls to getAttachment. */ public UnaryCallSettings getAttachmentSettings() { return ((ChatServiceStubSettings) getStubSettings()).getAttachmentSettings(); @@ -513,6 +521,13 @@ public UnaryCallSettings.Builder deleteMessageSetti return getStubSettingsBuilder().deleteMessageSettings(); } + /** Returns the builder for the settings used for calls to searchMessages. */ + public PagedCallSettings.Builder< + SearchMessagesRequest, SearchMessagesResponse, SearchMessagesPagedResponse> + searchMessagesSettings() { + return getStubSettingsBuilder().searchMessagesSettings(); + } + /** Returns the builder for the settings used for calls to getAttachment. */ public UnaryCallSettings.Builder getAttachmentSettings() { return getStubSettingsBuilder().getAttachmentSettings(); diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json index 152165274f4a..ecbc31975d85 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json @@ -124,6 +124,9 @@ "PositionSection": { "methods": ["positionSection", "positionSectionCallable"] }, + "SearchMessages": { + "methods": ["searchMessages", "searchMessages", "searchMessages", "searchMessagesPagedCallable", "searchMessagesCallable"] + }, "SearchSpaces": { "methods": ["searchSpaces", "searchSpaces", "searchSpacesPagedCallable", "searchSpacesCallable"] }, diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java index 8fb3bf3459e8..b47b22b8f381 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java @@ -25,6 +25,7 @@ import static com.google.chat.v1.ChatServiceClient.ListSectionsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; +import static com.google.chat.v1.ChatServiceClient.SearchMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.SearchSpacesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -85,6 +86,8 @@ import com.google.chat.v1.PositionSectionRequest; import com.google.chat.v1.PositionSectionResponse; import com.google.chat.v1.Reaction; +import com.google.chat.v1.SearchMessagesRequest; +import com.google.chat.v1.SearchMessagesResponse; import com.google.chat.v1.SearchSpacesRequest; import com.google.chat.v1.SearchSpacesResponse; import com.google.chat.v1.Section; @@ -154,6 +157,15 @@ public UnaryCallable deleteMessageCallable() { throw new UnsupportedOperationException("Not implemented: deleteMessageCallable()"); } + public UnaryCallable + searchMessagesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchMessagesPagedCallable()"); + } + + public UnaryCallable searchMessagesCallable() { + throw new UnsupportedOperationException("Not implemented: searchMessagesCallable()"); + } + public UnaryCallable getAttachmentCallable() { throw new UnsupportedOperationException("Not implemented: getAttachmentCallable()"); } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java index fd76824f035f..10c4917165bc 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java @@ -25,6 +25,7 @@ import static com.google.chat.v1.ChatServiceClient.ListSectionsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; +import static com.google.chat.v1.ChatServiceClient.SearchMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.SearchSpacesPagedResponse; import com.google.api.core.ApiFunction; @@ -110,6 +111,9 @@ import com.google.chat.v1.PositionSectionRequest; import com.google.chat.v1.PositionSectionResponse; import com.google.chat.v1.Reaction; +import com.google.chat.v1.SearchMessageResult; +import com.google.chat.v1.SearchMessagesRequest; +import com.google.chat.v1.SearchMessagesResponse; import com.google.chat.v1.SearchSpacesRequest; import com.google.chat.v1.SearchSpacesResponse; import com.google.chat.v1.Section; @@ -247,6 +251,9 @@ public class ChatServiceStubSettings extends StubSettings getMessageSettings; private final UnaryCallSettings updateMessageSettings; private final UnaryCallSettings deleteMessageSettings; + private final PagedCallSettings< + SearchMessagesRequest, SearchMessagesResponse, SearchMessagesPagedResponse> + searchMessagesSettings; private final UnaryCallSettings getAttachmentSettings; private final UnaryCallSettings uploadAttachmentSettings; @@ -386,6 +393,43 @@ public Iterable extractResources(ListMembershipsResponse payload) { } }; + private static final PagedListDescriptor< + SearchMessagesRequest, SearchMessagesResponse, SearchMessageResult> + SEARCH_MESSAGES_PAGE_STR_DESC = + new PagedListDescriptor< + SearchMessagesRequest, SearchMessagesResponse, SearchMessageResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchMessagesRequest injectToken(SearchMessagesRequest payload, String token) { + return SearchMessagesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchMessagesRequest injectPageSize( + SearchMessagesRequest payload, int pageSize) { + return SearchMessagesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchMessagesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchMessagesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchMessagesResponse payload) { + return payload.getResultsList(); + } + }; + private static final PagedListDescriptor LIST_SPACES_PAGE_STR_DESC = new PagedListDescriptor() { @@ -704,6 +748,24 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + SearchMessagesRequest, SearchMessagesResponse, SearchMessagesPagedResponse> + SEARCH_MESSAGES_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchMessagesRequest, SearchMessagesResponse, SearchMessagesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchMessagesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create(callable, SEARCH_MESSAGES_PAGE_STR_DESC, request, context); + return SearchMessagesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListSpacesRequest, ListSpacesResponse, ListSpacesPagedResponse> LIST_SPACES_PAGE_STR_FACT = @@ -882,6 +944,13 @@ public UnaryCallSettings deleteMessageSettings() { return deleteMessageSettings; } + /** Returns the object with the settings used for calls to searchMessages. */ + public PagedCallSettings< + SearchMessagesRequest, SearchMessagesResponse, SearchMessagesPagedResponse> + searchMessagesSettings() { + return searchMessagesSettings; + } + /** Returns the object with the settings used for calls to getAttachment. */ public UnaryCallSettings getAttachmentSettings() { return getAttachmentSettings; @@ -1225,6 +1294,7 @@ protected ChatServiceStubSettings(Builder settingsBuilder) throws IOException { getMessageSettings = settingsBuilder.getMessageSettings().build(); updateMessageSettings = settingsBuilder.updateMessageSettings().build(); deleteMessageSettings = settingsBuilder.deleteMessageSettings().build(); + searchMessagesSettings = settingsBuilder.searchMessagesSettings().build(); getAttachmentSettings = settingsBuilder.getAttachmentSettings().build(); uploadAttachmentSettings = settingsBuilder.uploadAttachmentSettings().build(); listSpacesSettings = settingsBuilder.listSpacesSettings().build(); @@ -1293,6 +1363,9 @@ public static class Builder extends StubSettings.Builder getMessageSettings; private final UnaryCallSettings.Builder updateMessageSettings; private final UnaryCallSettings.Builder deleteMessageSettings; + private final PagedCallSettings.Builder< + SearchMessagesRequest, SearchMessagesResponse, SearchMessagesPagedResponse> + searchMessagesSettings; private final UnaryCallSettings.Builder getAttachmentSettings; private final UnaryCallSettings.Builder uploadAttachmentSettings; @@ -1416,6 +1489,7 @@ protected Builder(@Nullable ClientContext clientContext) { getMessageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateMessageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteMessageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + searchMessagesSettings = PagedCallSettings.newBuilder(SEARCH_MESSAGES_PAGE_STR_FACT); getAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); uploadAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listSpacesSettings = PagedCallSettings.newBuilder(LIST_SPACES_PAGE_STR_FACT); @@ -1467,6 +1541,7 @@ protected Builder(@Nullable ClientContext clientContext) { getMessageSettings, updateMessageSettings, deleteMessageSettings, + searchMessagesSettings, getAttachmentSettings, uploadAttachmentSettings, listSpacesSettings, @@ -1521,6 +1596,7 @@ protected Builder(ChatServiceStubSettings settings) { getMessageSettings = settings.getMessageSettings.toBuilder(); updateMessageSettings = settings.updateMessageSettings.toBuilder(); deleteMessageSettings = settings.deleteMessageSettings.toBuilder(); + searchMessagesSettings = settings.searchMessagesSettings.toBuilder(); getAttachmentSettings = settings.getAttachmentSettings.toBuilder(); uploadAttachmentSettings = settings.uploadAttachmentSettings.toBuilder(); listSpacesSettings = settings.listSpacesSettings.toBuilder(); @@ -1574,6 +1650,7 @@ protected Builder(ChatServiceStubSettings settings) { getMessageSettings, updateMessageSettings, deleteMessageSettings, + searchMessagesSettings, getAttachmentSettings, uploadAttachmentSettings, listSpacesSettings, @@ -1677,6 +1754,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .searchMessagesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getAttachmentSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1939,6 +2021,13 @@ public UnaryCallSettings.Builder deleteMessageSetti return deleteMessageSettings; } + /** Returns the builder for the settings used for calls to searchMessages. */ + public PagedCallSettings.Builder< + SearchMessagesRequest, SearchMessagesResponse, SearchMessagesPagedResponse> + searchMessagesSettings() { + return searchMessagesSettings; + } + /** Returns the builder for the settings used for calls to getAttachment. */ public UnaryCallSettings.Builder getAttachmentSettings() { return getAttachmentSettings; diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java index 5dc37e9c64bb..48c01a0ae7ae 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java @@ -25,6 +25,7 @@ import static com.google.chat.v1.ChatServiceClient.ListSectionsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; +import static com.google.chat.v1.ChatServiceClient.SearchMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.SearchSpacesPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -90,6 +91,8 @@ import com.google.chat.v1.PositionSectionRequest; import com.google.chat.v1.PositionSectionResponse; import com.google.chat.v1.Reaction; +import com.google.chat.v1.SearchMessagesRequest; +import com.google.chat.v1.SearchMessagesResponse; import com.google.chat.v1.SearchSpacesRequest; import com.google.chat.v1.SearchSpacesResponse; import com.google.chat.v1.Section; @@ -200,6 +203,18 @@ public class GrpcChatServiceStub extends ChatServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + searchMessagesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/SearchMessages") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchMessagesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchMessagesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getAttachmentMethodDescriptor = MethodDescriptor.newBuilder() @@ -663,6 +678,9 @@ public class GrpcChatServiceStub extends ChatServiceStub { private final UnaryCallable getMessageCallable; private final UnaryCallable updateMessageCallable; private final UnaryCallable deleteMessageCallable; + private final UnaryCallable searchMessagesCallable; + private final UnaryCallable + searchMessagesPagedCallable; private final UnaryCallable getAttachmentCallable; private final UnaryCallable uploadAttachmentCallable; @@ -850,6 +868,18 @@ protected GrpcChatServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + searchMessagesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchMessagesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings getAttachmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAttachmentMethodDescriptor) @@ -1286,6 +1316,12 @@ protected GrpcChatServiceStub( this.deleteMessageCallable = callableFactory.createUnaryCallable( deleteMessageTransportSettings, settings.deleteMessageSettings(), clientContext); + this.searchMessagesCallable = + callableFactory.createUnaryCallable( + searchMessagesTransportSettings, settings.searchMessagesSettings(), clientContext); + this.searchMessagesPagedCallable = + callableFactory.createPagedCallable( + searchMessagesTransportSettings, settings.searchMessagesSettings(), clientContext); this.getAttachmentCallable = callableFactory.createUnaryCallable( getAttachmentTransportSettings, settings.getAttachmentSettings(), clientContext); @@ -1510,6 +1546,17 @@ public UnaryCallable deleteMessageCallable() { return deleteMessageCallable; } + @Override + public UnaryCallable searchMessagesCallable() { + return searchMessagesCallable; + } + + @Override + public UnaryCallable + searchMessagesPagedCallable() { + return searchMessagesPagedCallable; + } + @Override public UnaryCallable getAttachmentCallable() { return getAttachmentCallable; diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java index 56d3dec61e30..36e5bef2101b 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java @@ -25,6 +25,7 @@ import static com.google.chat.v1.ChatServiceClient.ListSectionsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; +import static com.google.chat.v1.ChatServiceClient.SearchMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.SearchSpacesPagedResponse; import com.google.api.core.InternalApi; @@ -95,6 +96,8 @@ import com.google.chat.v1.PositionSectionRequest; import com.google.chat.v1.PositionSectionResponse; import com.google.chat.v1.Reaction; +import com.google.chat.v1.SearchMessagesRequest; +import com.google.chat.v1.SearchMessagesResponse; import com.google.chat.v1.SearchSpacesRequest; import com.google.chat.v1.SearchSpacesResponse; import com.google.chat.v1.Section; @@ -409,6 +412,43 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + searchMessagesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/SearchMessages") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=spaces/*}/messages:search", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchMessagesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getAttachmentMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1921,6 +1961,9 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { private final UnaryCallable getMessageCallable; private final UnaryCallable updateMessageCallable; private final UnaryCallable deleteMessageCallable; + private final UnaryCallable searchMessagesCallable; + private final UnaryCallable + searchMessagesPagedCallable; private final UnaryCallable getAttachmentCallable; private final UnaryCallable uploadAttachmentCallable; @@ -2115,6 +2158,19 @@ protected HttpJsonChatServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings + searchMessagesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchMessagesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings getAttachmentTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAttachmentMethodDescriptor) @@ -2597,6 +2653,12 @@ protected HttpJsonChatServiceStub( this.deleteMessageCallable = callableFactory.createUnaryCallable( deleteMessageTransportSettings, settings.deleteMessageSettings(), clientContext); + this.searchMessagesCallable = + callableFactory.createUnaryCallable( + searchMessagesTransportSettings, settings.searchMessagesSettings(), clientContext); + this.searchMessagesPagedCallable = + callableFactory.createPagedCallable( + searchMessagesTransportSettings, settings.searchMessagesSettings(), clientContext); this.getAttachmentCallable = callableFactory.createUnaryCallable( getAttachmentTransportSettings, settings.getAttachmentSettings(), clientContext); @@ -2781,6 +2843,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getMessageMethodDescriptor); methodDescriptors.add(updateMessageMethodDescriptor); methodDescriptors.add(deleteMessageMethodDescriptor); + methodDescriptors.add(searchMessagesMethodDescriptor); methodDescriptors.add(getAttachmentMethodDescriptor); methodDescriptors.add(uploadAttachmentMethodDescriptor); methodDescriptors.add(listSpacesMethodDescriptor); @@ -2871,6 +2934,17 @@ public UnaryCallable deleteMessageCallable() { return deleteMessageCallable; } + @Override + public UnaryCallable searchMessagesCallable() { + return searchMessagesCallable; + } + + @Override + public UnaryCallable + searchMessagesPagedCallable() { + return searchMessagesPagedCallable; + } + @Override public UnaryCallable getAttachmentCallable() { return getAttachmentCallable; diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index 8e47be1cc5e8..83707815df83 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -3599,6 +3599,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.SearchMessageResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SearchMessageResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SearchMessagesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SearchMessagesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SearchMessagesRequest$SearchMessagesView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SearchMessagesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.SearchMessagesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.SearchSpacesRequest", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index beb8b2774005..8573d297a97f 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -25,6 +25,7 @@ import static com.google.chat.v1.ChatServiceClient.ListSectionsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; +import static com.google.chat.v1.ChatServiceClient.SearchMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.SearchSpacesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -878,6 +879,110 @@ public void deleteMessageExceptionTest2() throws Exception { } } + @Test + public void searchMessagesTest() throws Exception { + SearchMessageResult responsesElement = SearchMessageResult.newBuilder().build(); + SearchMessagesResponse expectedResponse = + SearchMessagesResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + + SearchMessagesPagedResponse pagedListResponse = client.searchMessages(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchMessagesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + client.searchMessages(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchMessagesTest2() throws Exception { + SearchMessageResult responsesElement = SearchMessageResult.newBuilder().build(); + SearchMessagesResponse expectedResponse = + SearchMessagesResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "spaces/space-3870"; + String filter = "filter-1274492040"; + + SearchMessagesPagedResponse pagedListResponse = client.searchMessages(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchMessagesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "spaces/space-3870"; + String filter = "filter-1274492040"; + client.searchMessages(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getAttachmentTest() throws Exception { Attachment expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index 33bc0d364160..73b39d3e206f 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -25,6 +25,7 @@ import static com.google.chat.v1.ChatServiceClient.ListSectionsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpaceEventsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListSpacesPagedResponse; +import static com.google.chat.v1.ChatServiceClient.SearchMessagesPagedResponse; import static com.google.chat.v1.ChatServiceClient.SearchSpacesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -750,6 +751,100 @@ public void deleteMessageExceptionTest2() throws Exception { } } + @Test + public void searchMessagesTest() throws Exception { + SearchMessageResult responsesElement = SearchMessageResult.newBuilder().build(); + SearchMessagesResponse expectedResponse = + SearchMessagesResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockChatService.addResponse(expectedResponse); + + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + + SearchMessagesPagedResponse pagedListResponse = client.searchMessages(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchMessagesRequest actualRequest = ((SearchMessagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchMessagesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + client.searchMessages(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchMessagesTest2() throws Exception { + SearchMessageResult responsesElement = SearchMessageResult.newBuilder().build(); + SearchMessagesResponse expectedResponse = + SearchMessagesResponse.newBuilder() + .setNextPageToken("") + .addAllResults(Arrays.asList(responsesElement)) + .build(); + mockChatService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + + SearchMessagesPagedResponse pagedListResponse = client.searchMessages(parent, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchMessagesRequest actualRequest = ((SearchMessagesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchMessagesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + client.searchMessages(parent, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getAttachmentTest() throws Exception { Attachment expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java index 8ee07df34625..82b8ec772ecd 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java @@ -204,6 +204,27 @@ public void deleteMessage(DeleteMessageRequest request, StreamObserver re } } + @Override + public void searchMessages( + SearchMessagesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchMessagesResponse) { + requests.add(request); + responseObserver.onNext(((SearchMessagesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SearchMessages, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchMessagesResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getAttachment( GetAttachmentRequest request, StreamObserver responseObserver) { diff --git a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java index cf62985ed01c..239769136ea7 100644 --- a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java +++ b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java @@ -311,6 +311,48 @@ private ChatServiceGrpc() {} return getDeleteMessageMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.SearchMessagesRequest, com.google.chat.v1.SearchMessagesResponse> + getSearchMessagesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchMessages", + requestType = com.google.chat.v1.SearchMessagesRequest.class, + responseType = com.google.chat.v1.SearchMessagesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.SearchMessagesRequest, com.google.chat.v1.SearchMessagesResponse> + getSearchMessagesMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.SearchMessagesRequest, com.google.chat.v1.SearchMessagesResponse> + getSearchMessagesMethod; + if ((getSearchMessagesMethod = ChatServiceGrpc.getSearchMessagesMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getSearchMessagesMethod = ChatServiceGrpc.getSearchMessagesMethod) == null) { + ChatServiceGrpc.getSearchMessagesMethod = + getSearchMessagesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchMessages")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.SearchMessagesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.SearchMessagesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ChatServiceMethodDescriptorSupplier("SearchMessages")) + .build(); + } + } + } + return getSearchMessagesMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.chat.v1.GetAttachmentRequest, com.google.chat.v1.Attachment> getGetAttachmentMethod; @@ -2325,6 +2367,41 @@ default void deleteMessage( getDeleteMessageMethod(), responseObserver); } + /** + * + * + *
+     * Searches for messages in Google Chat that the calling user has access to.
+     * Returns a list of messages matching the search criteria.
+     * To search across all spaces the user has access to, set `parent` to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error. The returned messages have their `name` field
+     * populated with the full resource name, which includes the specific `space`
+     * in which the message resides.
+     * This API doesn't return all message types. The types of messages listed
+     * below aren't included in the response. Use
+     * [ListMessages][google.chat.v1.ChatService.ListMessages] to list all
+     * messages.
+     * - Private Messages that are visible to the authenticated user.
+     * - Messages posted by Chat apps in spaces or group chats.
+     * - Messages in a Chat app DM.
+     * - Messages from blocked users.
+     * - Messages in spaces that the caller has muted.
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.messages.readonly`
+     *   - `https://www.googleapis.com/auth/chat.messages`
+     * 
+ */ + default void searchMessages( + com.google.chat.v1.SearchMessagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchMessagesMethod(), responseObserver); + } + /** * * @@ -3836,6 +3913,43 @@ public void deleteMessage( responseObserver); } + /** + * + * + *
+     * Searches for messages in Google Chat that the calling user has access to.
+     * Returns a list of messages matching the search criteria.
+     * To search across all spaces the user has access to, set `parent` to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error. The returned messages have their `name` field
+     * populated with the full resource name, which includes the specific `space`
+     * in which the message resides.
+     * This API doesn't return all message types. The types of messages listed
+     * below aren't included in the response. Use
+     * [ListMessages][google.chat.v1.ChatService.ListMessages] to list all
+     * messages.
+     * - Private Messages that are visible to the authenticated user.
+     * - Messages posted by Chat apps in spaces or group chats.
+     * - Messages in a Chat app DM.
+     * - Messages from blocked users.
+     * - Messages in spaces that the caller has muted.
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.messages.readonly`
+     *   - `https://www.googleapis.com/auth/chat.messages`
+     * 
+ */ + public void searchMessages( + com.google.chat.v1.SearchMessagesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchMessagesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -5390,6 +5504,40 @@ public com.google.protobuf.Empty deleteMessage(com.google.chat.v1.DeleteMessageR getChannel(), getDeleteMessageMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Searches for messages in Google Chat that the calling user has access to.
+     * Returns a list of messages matching the search criteria.
+     * To search across all spaces the user has access to, set `parent` to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error. The returned messages have their `name` field
+     * populated with the full resource name, which includes the specific `space`
+     * in which the message resides.
+     * This API doesn't return all message types. The types of messages listed
+     * below aren't included in the response. Use
+     * [ListMessages][google.chat.v1.ChatService.ListMessages] to list all
+     * messages.
+     * - Private Messages that are visible to the authenticated user.
+     * - Messages posted by Chat apps in spaces or group chats.
+     * - Messages in a Chat app DM.
+     * - Messages from blocked users.
+     * - Messages in spaces that the caller has muted.
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.messages.readonly`
+     *   - `https://www.googleapis.com/auth/chat.messages`
+     * 
+ */ + public com.google.chat.v1.SearchMessagesResponse searchMessages( + com.google.chat.v1.SearchMessagesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchMessagesMethod(), getCallOptions(), request); + } + /** * * @@ -6829,6 +6977,40 @@ public com.google.protobuf.Empty deleteMessage( getChannel(), getDeleteMessageMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Searches for messages in Google Chat that the calling user has access to.
+     * Returns a list of messages matching the search criteria.
+     * To search across all spaces the user has access to, set `parent` to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error. The returned messages have their `name` field
+     * populated with the full resource name, which includes the specific `space`
+     * in which the message resides.
+     * This API doesn't return all message types. The types of messages listed
+     * below aren't included in the response. Use
+     * [ListMessages][google.chat.v1.ChatService.ListMessages] to list all
+     * messages.
+     * - Private Messages that are visible to the authenticated user.
+     * - Messages posted by Chat apps in spaces or group chats.
+     * - Messages in a Chat app DM.
+     * - Messages from blocked users.
+     * - Messages in spaces that the caller has muted.
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.messages.readonly`
+     *   - `https://www.googleapis.com/auth/chat.messages`
+     * 
+ */ + public com.google.chat.v1.SearchMessagesResponse searchMessages( + com.google.chat.v1.SearchMessagesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchMessagesMethod(), getCallOptions(), request); + } + /** * * @@ -8264,6 +8446,41 @@ protected ChatServiceFutureStub build( getChannel().newCall(getDeleteMessageMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Searches for messages in Google Chat that the calling user has access to.
+     * Returns a list of messages matching the search criteria.
+     * To search across all spaces the user has access to, set `parent` to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error. The returned messages have their `name` field
+     * populated with the full resource name, which includes the specific `space`
+     * in which the message resides.
+     * This API doesn't return all message types. The types of messages listed
+     * below aren't included in the response. Use
+     * [ListMessages][google.chat.v1.ChatService.ListMessages] to list all
+     * messages.
+     * - Private Messages that are visible to the authenticated user.
+     * - Messages posted by Chat apps in spaces or group chats.
+     * - Messages in a Chat app DM.
+     * - Messages from blocked users.
+     * - Messages in spaces that the caller has muted.
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.messages.readonly`
+     *   - `https://www.googleapis.com/auth/chat.messages`
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.chat.v1.SearchMessagesResponse> + searchMessages(com.google.chat.v1.SearchMessagesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchMessagesMethod(), getCallOptions()), request); + } + /** * * @@ -9447,47 +9664,48 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -9543,6 +9761,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.chat.v1.DeleteMessageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_SEARCH_MESSAGES: + serviceImpl.searchMessages( + (com.google.chat.v1.SearchMessagesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_GET_ATTACHMENT: serviceImpl.getAttachment( (com.google.chat.v1.GetAttachmentRequest) request, @@ -9823,6 +10047,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.chat.v1.DeleteMessageRequest, com.google.protobuf.Empty>( service, METHODID_DELETE_MESSAGE))) + .addMethod( + getSearchMessagesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.SearchMessagesRequest, + com.google.chat.v1.SearchMessagesResponse>(service, METHODID_SEARCH_MESSAGES))) .addMethod( getGetAttachmentMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -10132,6 +10362,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetMessageMethod()) .addMethod(getUpdateMessageMethod()) .addMethod(getDeleteMessageMethod()) + .addMethod(getSearchMessagesMethod()) .addMethod(getGetAttachmentMethod()) .addMethod(getUploadAttachmentMethod()) .addMethod(getListSpacesMethod()) diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java index 15f613c271eb..586fcfc45236 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java @@ -61,7 +61,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ing.proto\032%google/chat/v1/space_read_sta" + "te.proto\032 google/chat/v1/space_setup.pro" + "to\032&google/chat/v1/thread_read_state.pro" - + "to\032\033google/protobuf/empty.proto2\306G\n\013Chat" + + "to\032\033google/protobuf/empty.proto2\352H\n\013Chat" + "Service\022\233\001\n\rCreateMessage\022$.google.chat." + "v1.CreateMessageRequest\032\027.google.chat.v1" + ".Message\"K\332A\031parent,message,message_id\202\323" @@ -88,214 +88,218 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\rDeleteMessage\022$.google.chat.v1.DeleteMe" + "ssageRequest\032\026.google.protobuf.Empty\"-\332A" + "\004name\202\323\344\223\002 *\036/v1/{name=spaces/*/messages" - + "/*}\022\216\001\n\rGetAttachment\022$.google.chat.v1.G" - + "etAttachmentRequest\032\032.google.chat.v1.Att" - + "achment\";\332A\004name\202\323\344\223\002.\022,/v1/{name=spaces" - + "/*/messages/*/attachments/*}\022\232\001\n\020UploadA" - + "ttachment\022\'.google.chat.v1.UploadAttachm" - + "entRequest\032(.google.chat.v1.UploadAttach" - + "mentResponse\"3\202\323\344\223\002-\"(/v1/{parent=spaces" - + "/*}/attachments:upload:\001*\022j\n\nListSpaces\022" - + "!.google.chat.v1.ListSpacesRequest\032\".goo" - + "gle.chat.v1.ListSpacesResponse\"\025\332A\000\202\323\344\223\002" - + "\014\022\n/v1/spaces\022w\n\014SearchSpaces\022#.google.c" - + "hat.v1.SearchSpacesRequest\032$.google.chat" - + ".v1.SearchSpacesResponse\"\034\332A\000\202\323\344\223\002\023\022\021/v1" - + "/spaces:search\022f\n\010GetSpace\022\037.google.chat" - + ".v1.GetSpaceRequest\032\025.google.chat.v1.Spa" - + "ce\"\"\332A\004name\202\323\344\223\002\025\022\023/v1/{name=spaces/*}\022k" - + "\n\013CreateSpace\022\".google.chat.v1.CreateSpa" - + "ceRequest\032\025.google.chat.v1.Space\"!\332A\005spa" - + "ce\202\323\344\223\002\023\"\n/v1/spaces:\005space\022c\n\nSetUpSpac" - + "e\022!.google.chat.v1.SetUpSpaceRequest\032\025.g" - + "oogle.chat.v1.Space\"\033\202\323\344\223\002\025\"\020/v1/spaces:" - + "setup:\001*\022\206\001\n\013UpdateSpace\022\".google.chat.v" - + "1.UpdateSpaceRequest\032\025.google.chat.v1.Sp" - + "ace\"<\332A\021space,update_mask\202\323\344\223\002\"2\031/v1/{sp" - + "ace.name=spaces/*}:\005space\022m\n\013DeleteSpace" - + "\022\".google.chat.v1.DeleteSpaceRequest\032\026.g" - + "oogle.protobuf.Empty\"\"\332A\004name\202\323\344\223\002\025*\023/v1" - + "/{name=spaces/*}\022\235\001\n\023CompleteImportSpace" - + "\022*.google.chat.v1.CompleteImportSpaceReq" - + "uest\032+.google.chat.v1.CompleteImportSpac" - + "eResponse\"-\202\323\344\223\002\'\"\"/v1/{name=spaces/*}:c" - + "ompleteImport:\001*\022z\n\021FindDirectMessage\022(." - + "google.chat.v1.FindDirectMessageRequest\032" - + "\025.google.chat.v1.Space\"$\202\323\344\223\002\036\022\034/v1/spac" - + "es:findDirectMessage\022\202\001\n\016FindGroupChats\022" - + "%.google.chat.v1.FindGroupChatsRequest\032&" - + ".google.chat.v1.FindGroupChatsResponse\"!" - + "\202\323\344\223\002\033\022\031/v1/spaces:findGroupChats\022\236\001\n\020Cr" - + "eateMembership\022\'.google.chat.v1.CreateMe" - + "mbershipRequest\032\032.google.chat.v1.Members" - + "hip\"E\332A\021parent,membership\202\323\344\223\002+\"\035/v1/{pa" - + "rent=spaces/*}/members:\nmembership\022\256\001\n\020U" - + "pdateMembership\022\'.google.chat.v1.UpdateM" - + "embershipRequest\032\032.google.chat.v1.Member" - + "ship\"U\332A\026membership,update_mask\202\323\344\223\00262(/" - + "v1/{membership.name=spaces/*/members/*}:" - + "\nmembership\022\205\001\n\020DeleteMembership\022\'.googl" - + "e.chat.v1.DeleteMembershipRequest\032\032.goog" - + "le.chat.v1.Membership\",\332A\004name\202\323\344\223\002\037*\035/v" - + "1/{name=spaces/*/members/*}\022\241\001\n\016CreateRe" - + "action\022%.google.chat.v1.CreateReactionRe" - + "quest\032\030.google.chat.v1.Reaction\"N\332A\017pare" - + "nt,reaction\202\323\344\223\0026\"*/v1/{parent=spaces/*/" - + "messages/*}/reactions:\010reaction\022\231\001\n\rList" - + "Reactions\022$.google.chat.v1.ListReactions" - + "Request\032%.google.chat.v1.ListReactionsRe" - + "sponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent=spa" - + "ces/*/messages/*}/reactions\022\212\001\n\016DeleteRe" - + "action\022%.google.chat.v1.DeleteReactionRe" - + "quest\032\026.google.protobuf.Empty\"9\332A\004name\202\323" - + "\344\223\002,**/v1/{name=spaces/*/messages/*/reac" - + "tions/*}\022\221\001\n\021CreateCustomEmoji\022(.google." - + "chat.v1.CreateCustomEmojiRequest\032\033.googl" - + "e.chat.v1.CustomEmoji\"5\332A\014custom_emoji\202\323" - + "\344\223\002 \"\020/v1/customEmojis:\014custom_emoji\022~\n\016" - + "GetCustomEmoji\022%.google.chat.v1.GetCusto" - + "mEmojiRequest\032\033.google.chat.v1.CustomEmo" - + "ji\"(\332A\004name\202\323\344\223\002\033\022\031/v1/{name=customEmoji" - + "s/*}\022\202\001\n\020ListCustomEmojis\022\'.google.chat." - + "v1.ListCustomEmojisRequest\032(.google.chat" - + ".v1.ListCustomEmojisResponse\"\033\332A\000\202\323\344\223\002\022\022" - + "\020/v1/customEmojis\022\177\n\021DeleteCustomEmoji\022(" - + ".google.chat.v1.DeleteCustomEmojiRequest" - + "\032\026.google.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*" - + "\031/v1/{name=customEmojis/*}\022\230\001\n\021GetSpaceR" - + "eadState\022(.google.chat.v1.GetSpaceReadSt" - + "ateRequest\032\036.google.chat.v1.SpaceReadSta" - + "te\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=users/*/spa" - + "ces/*/spaceReadState}\022\331\001\n\024UpdateSpaceRea" - + "dState\022+.google.chat.v1.UpdateSpaceReadS" - + "tateRequest\032\036.google.chat.v1.SpaceReadSt" - + "ate\"t\332A\034space_read_state,update_mask\202\323\344\223" - + "\002O2;/v1/{space_read_state.name=users/*/s" - + "paces/*/spaceReadState}:\020space_read_stat" - + "e\022\246\001\n\022GetThreadReadState\022).google.chat.v" - + "1.GetThreadReadStateRequest\032\037.google.cha" - + "t.v1.ThreadReadState\"D\332A\004name\202\323\344\223\0027\0225/v1" - + "/{name=users/*/spaces/*/threads/*/thread" - + "ReadState}\022\207\001\n\017GetAvailability\022&.google." - + "chat.v1.GetAvailabilityRequest\032\034.google." - + "chat.v1.Availability\".\332A\004name\202\323\344\223\002!\022\037/v1" - + "/{name=users/*/availability}\022\212\001\n\014MarkAsA" - + "ctive\022#.google.chat.v1.MarkAsActiveReque" - + "st\032\034.google.chat.v1.Availability\"7\202\323\344\223\0021" - + "\",/v1/{name=users/*/availability}:markAs" - + "Active:\001*\022\204\001\n\nMarkAsAway\022!.google.chat.v" - + "1.MarkAsAwayRequest\032\034.google.chat.v1.Ava" - + "ilability\"5\202\323\344\223\002/\"*/v1/{name=users/*/ava" - + "ilability}:markAsAway:\001*\022\234\001\n\022MarkAsDoNot" - + "Disturb\022).google.chat.v1.MarkAsDoNotDist" - + "urbRequest\032\034.google.chat.v1.Availability" - + "\"=\202\323\344\223\0027\"2/v1/{name=users/*/availability" - + "}:markAsDoNotDisturb:\001*\022\274\001\n\022UpdateAvaila" - + "bility\022).google.chat.v1.UpdateAvailabili" - + "tyRequest\032\034.google.chat.v1.Availability\"" - + "]\332A\030availability,update_mask\202\323\344\223\002<2,/v1/" - + "{availability.name=users/*/availability}" - + ":\014availability\022\203\001\n\rGetSpaceEvent\022$.googl" - + "e.chat.v1.GetSpaceEventRequest\032\032.google." - + "chat.v1.SpaceEvent\"0\332A\004name\202\323\344\223\002#\022!/v1/{" - + "name=spaces/*/spaceEvents/*}\022\235\001\n\017ListSpa" - + "ceEvents\022&.google.chat.v1.ListSpaceEvent" - + "sRequest\032\'.google.chat.v1.ListSpaceEvent" - + "sResponse\"9\332A\rparent,filter\202\323\344\223\002#\022!/v1/{" - + "parent=spaces/*}/spaceEvents\022\300\001\n\033GetSpac" - + "eNotificationSetting\0222.google.chat.v1.Ge" - + "tSpaceNotificationSettingRequest\032(.googl" - + "e.chat.v1.SpaceNotificationSetting\"C\332A\004n" - + "ame\202\323\344\223\0026\0224/v1/{name=users/*/spaces/*/sp" - + "aceNotificationSetting}\022\240\002\n\036UpdateSpaceN" - + "otificationSetting\0225.google.chat.v1.Upda" - + "teSpaceNotificationSettingRequest\032(.goog" - + "le.chat.v1.SpaceNotificationSetting\"\234\001\332A" - + "&space_notification_setting,update_mask\202" - + "\323\344\223\002m2O/v1/{space_notification_setting.n" - + "ame=users/*/spaces/*/spaceNotificationSe" - + "tting}:\032space_notification_setting\022\217\001\n\rC" - + "reateSection\022$.google.chat.v1.CreateSect" - + "ionRequest\032\027.google.chat.v1.Section\"?\332A\016" - + "parent,section\202\323\344\223\002(\"\035/v1/{parent=users/" - + "*}/sections:\007section\022{\n\rDeleteSection\022$." - + "google.chat.v1.DeleteSectionRequest\032\026.go" - + "ogle.protobuf.Empty\",\332A\004name\202\323\344\223\002\037*\035/v1/" - + "{name=users/*/sections/*}\022\234\001\n\rUpdateSect" - + "ion\022$.google.chat.v1.UpdateSectionReques" - + "t\032\027.google.chat.v1.Section\"L\332A\023section,u" - + "pdate_mask\202\323\344\223\00202%/v1/{section.name=user" - + "s/*/sections/*}:\007section\022\211\001\n\014ListSection" - + "s\022#.google.chat.v1.ListSectionsRequest\032$" - + ".google.chat.v1.ListSectionsResponse\".\332A" - + "\006parent\202\323\344\223\002\037\022\035/v1/{parent=users/*}/sect" - + "ions\022\225\001\n\017PositionSection\022&.google.chat.v" - + "1.PositionSectionRequest\032\'.google.chat.v" - + "1.PositionSectionResponse\"1\202\323\344\223\002+\"&/v1/{" - + "name=users/*/sections/*}:position:\001*\022\235\001\n" - + "\020ListSectionItems\022\'.google.chat.v1.ListS" - + "ectionItemsRequest\032(.google.chat.v1.List" - + "SectionItemsResponse\"6\332A\006parent\202\323\344\223\002\'\022%/" - + "v1/{parent=users/*/sections/*}/items\022\257\001\n" - + "\017MoveSectionItem\022&.google.chat.v1.MoveSe" - + "ctionItemRequest\032\'.google.chat.v1.MoveSe" - + "ctionItemResponse\"K\332A\023name,target_sectio" - + "n\202\323\344\223\002/\"*/v1/{name=users/*/sections/*/it" - + "ems/*}:move:\001*\032\267\017\312A\023chat.googleapis.com\322" - + "A\235\017https://www.googleapis.com/auth/chat." - + "admin.delete,https://www.googleapis.com/" - + "auth/chat.admin.memberships,https://www." - + "googleapis.com/auth/chat.admin.membershi" - + "ps.readonly,https://www.googleapis.com/a" - + "uth/chat.admin.spaces,https://www.google" - + "apis.com/auth/chat.admin.spaces.readonly" - + ",https://www.googleapis.com/auth/chat.ap" - + "p.delete,https://www.googleapis.com/auth" - + "/chat.app.memberships,https://www.google" - + "apis.com/auth/chat.app.memberships.reado" - + "nly,https://www.googleapis.com/auth/chat" - + ".app.messages.readonly,https://www.googl" - + "eapis.com/auth/chat.app.spaces,https://w" - + "ww.googleapis.com/auth/chat.app.spaces.c" - + "reate,https://www.googleapis.com/auth/ch" - + "at.app.spaces.readonly,https://www.googl" - + "eapis.com/auth/chat.bot,https://www.goog" - + "leapis.com/auth/chat.customemojis,https:" - + "//www.googleapis.com/auth/chat.customemo" - + "jis.readonly,https://www.googleapis.com/" - + "auth/chat.delete,https://www.googleapis." - + "com/auth/chat.import,https://www.googlea" - + "pis.com/auth/chat.memberships,https://ww" - + "w.googleapis.com/auth/chat.memberships.a" - + "pp,https://www.googleapis.com/auth/chat." - + "memberships.readonly,https://www.googlea" - + "pis.com/auth/chat.messages,https://www.g" - + "oogleapis.com/auth/chat.messages.create," - + "https://www.googleapis.com/auth/chat.mes" - + "sages.reactions,https://www.googleapis.c" - + "om/auth/chat.messages.reactions.create,h" - + "ttps://www.googleapis.com/auth/chat.mess" - + "ages.reactions.readonly,https://www.goog" - + "leapis.com/auth/chat.messages.readonly,h" - + "ttps://www.googleapis.com/auth/chat.spac" - + "es,https://www.googleapis.com/auth/chat." - + "spaces.create,https://www.googleapis.com" - + "/auth/chat.spaces.readonly,https://www.g" - + "oogleapis.com/auth/chat.users.availabili" - + "ty,https://www.googleapis.com/auth/chat." - + "users.availability.readonly,https://www." - + "googleapis.com/auth/chat.users.readstate" - + ",https://www.googleapis.com/auth/chat.us" - + "ers.readstate.readonly,https://www.googl" - + "eapis.com/auth/chat.users.sections,https" - + "://www.googleapis.com/auth/chat.users.se" - + "ctions.readonly,https://www.googleapis.c" - + "om/auth/chat.users.spacesettingsB\251\001\n\022com" - + ".google.chat.v1B\020ChatServiceProtoP\001Z,clo" - + "ud.google.com/go/chat/apiv1/chatpb;chatp" - + "b\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023" - + "Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat" - + "::V1b\006proto3" + + "/*}\022\241\001\n\016SearchMessages\022%.google.chat.v1." + + "SearchMessagesRequest\032&.google.chat.v1.S" + + "earchMessagesResponse\"@\332A\rparent,filter\202" + + "\323\344\223\002*\"%/v1/{parent=spaces/*}/messages:se" + + "arch:\001*\022\216\001\n\rGetAttachment\022$.google.chat." + + "v1.GetAttachmentRequest\032\032.google.chat.v1" + + ".Attachment\";\332A\004name\202\323\344\223\002.\022,/v1/{name=sp" + + "aces/*/messages/*/attachments/*}\022\232\001\n\020Upl" + + "oadAttachment\022\'.google.chat.v1.UploadAtt" + + "achmentRequest\032(.google.chat.v1.UploadAt" + + "tachmentResponse\"3\202\323\344\223\002-\"(/v1/{parent=sp" + + "aces/*}/attachments:upload:\001*\022j\n\nListSpa" + + "ces\022!.google.chat.v1.ListSpacesRequest\032\"" + + ".google.chat.v1.ListSpacesResponse\"\025\332A\000\202" + + "\323\344\223\002\014\022\n/v1/spaces\022w\n\014SearchSpaces\022#.goog" + + "le.chat.v1.SearchSpacesRequest\032$.google." + + "chat.v1.SearchSpacesResponse\"\034\332A\000\202\323\344\223\002\023\022" + + "\021/v1/spaces:search\022f\n\010GetSpace\022\037.google." + + "chat.v1.GetSpaceRequest\032\025.google.chat.v1" + + ".Space\"\"\332A\004name\202\323\344\223\002\025\022\023/v1/{name=spaces/" + + "*}\022k\n\013CreateSpace\022\".google.chat.v1.Creat" + + "eSpaceRequest\032\025.google.chat.v1.Space\"!\332A" + + "\005space\202\323\344\223\002\023\"\n/v1/spaces:\005space\022c\n\nSetUp" + + "Space\022!.google.chat.v1.SetUpSpaceRequest" + + "\032\025.google.chat.v1.Space\"\033\202\323\344\223\002\025\"\020/v1/spa" + + "ces:setup:\001*\022\206\001\n\013UpdateSpace\022\".google.ch" + + "at.v1.UpdateSpaceRequest\032\025.google.chat.v" + + "1.Space\"<\332A\021space,update_mask\202\323\344\223\002\"2\031/v1" + + "/{space.name=spaces/*}:\005space\022m\n\013DeleteS" + + "pace\022\".google.chat.v1.DeleteSpaceRequest" + + "\032\026.google.protobuf.Empty\"\"\332A\004name\202\323\344\223\002\025*" + + "\023/v1/{name=spaces/*}\022\235\001\n\023CompleteImportS" + + "pace\022*.google.chat.v1.CompleteImportSpac" + + "eRequest\032+.google.chat.v1.CompleteImport" + + "SpaceResponse\"-\202\323\344\223\002\'\"\"/v1/{name=spaces/" + + "*}:completeImport:\001*\022z\n\021FindDirectMessag" + + "e\022(.google.chat.v1.FindDirectMessageRequ" + + "est\032\025.google.chat.v1.Space\"$\202\323\344\223\002\036\022\034/v1/" + + "spaces:findDirectMessage\022\202\001\n\016FindGroupCh" + + "ats\022%.google.chat.v1.FindGroupChatsReque" + + "st\032&.google.chat.v1.FindGroupChatsRespon" + + "se\"!\202\323\344\223\002\033\022\031/v1/spaces:findGroupChats\022\236\001" + + "\n\020CreateMembership\022\'.google.chat.v1.Crea" + + "teMembershipRequest\032\032.google.chat.v1.Mem" + + "bership\"E\332A\021parent,membership\202\323\344\223\002+\"\035/v1" + + "/{parent=spaces/*}/members:\nmembership\022\256" + + "\001\n\020UpdateMembership\022\'.google.chat.v1.Upd" + + "ateMembershipRequest\032\032.google.chat.v1.Me" + + "mbership\"U\332A\026membership,update_mask\202\323\344\223\002" + + "62(/v1/{membership.name=spaces/*/members" + + "/*}:\nmembership\022\205\001\n\020DeleteMembership\022\'.g" + + "oogle.chat.v1.DeleteMembershipRequest\032\032." + + "google.chat.v1.Membership\",\332A\004name\202\323\344\223\002\037" + + "*\035/v1/{name=spaces/*/members/*}\022\241\001\n\016Crea" + + "teReaction\022%.google.chat.v1.CreateReacti" + + "onRequest\032\030.google.chat.v1.Reaction\"N\332A\017" + + "parent,reaction\202\323\344\223\0026\"*/v1/{parent=space" + + "s/*/messages/*}/reactions:\010reaction\022\231\001\n\r" + + "ListReactions\022$.google.chat.v1.ListReact" + + "ionsRequest\032%.google.chat.v1.ListReactio" + + "nsResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{parent" + + "=spaces/*/messages/*}/reactions\022\212\001\n\016Dele" + + "teReaction\022%.google.chat.v1.DeleteReacti" + + "onRequest\032\026.google.protobuf.Empty\"9\332A\004na" + + "me\202\323\344\223\002,**/v1/{name=spaces/*/messages/*/" + + "reactions/*}\022\221\001\n\021CreateCustomEmoji\022(.goo" + + "gle.chat.v1.CreateCustomEmojiRequest\032\033.g" + + "oogle.chat.v1.CustomEmoji\"5\332A\014custom_emo" + + "ji\202\323\344\223\002 \"\020/v1/customEmojis:\014custom_emoji" + + "\022~\n\016GetCustomEmoji\022%.google.chat.v1.GetC" + + "ustomEmojiRequest\032\033.google.chat.v1.Custo" + + "mEmoji\"(\332A\004name\202\323\344\223\002\033\022\031/v1/{name=customE" + + "mojis/*}\022\202\001\n\020ListCustomEmojis\022\'.google.c" + + "hat.v1.ListCustomEmojisRequest\032(.google." + + "chat.v1.ListCustomEmojisResponse\"\033\332A\000\202\323\344" + + "\223\002\022\022\020/v1/customEmojis\022\177\n\021DeleteCustomEmo" + + "ji\022(.google.chat.v1.DeleteCustomEmojiReq" + + "uest\032\026.google.protobuf.Empty\"(\332A\004name\202\323\344" + + "\223\002\033*\031/v1/{name=customEmojis/*}\022\230\001\n\021GetSp" + + "aceReadState\022(.google.chat.v1.GetSpaceRe" + + "adStateRequest\032\036.google.chat.v1.SpaceRea" + + "dState\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=users/*" + + "/spaces/*/spaceReadState}\022\331\001\n\024UpdateSpac" + + "eReadState\022+.google.chat.v1.UpdateSpaceR" + + "eadStateRequest\032\036.google.chat.v1.SpaceRe" + + "adState\"t\332A\034space_read_state,update_mask" + + "\202\323\344\223\002O2;/v1/{space_read_state.name=users" + + "/*/spaces/*/spaceReadState}:\020space_read_" + + "state\022\246\001\n\022GetThreadReadState\022).google.ch" + + "at.v1.GetThreadReadStateRequest\032\037.google" + + ".chat.v1.ThreadReadState\"D\332A\004name\202\323\344\223\0027\022" + + "5/v1/{name=users/*/spaces/*/threads/*/th" + + "readReadState}\022\207\001\n\017GetAvailability\022&.goo" + + "gle.chat.v1.GetAvailabilityRequest\032\034.goo" + + "gle.chat.v1.Availability\".\332A\004name\202\323\344\223\002!\022" + + "\037/v1/{name=users/*/availability}\022\212\001\n\014Mar" + + "kAsActive\022#.google.chat.v1.MarkAsActiveR" + + "equest\032\034.google.chat.v1.Availability\"7\202\323" + + "\344\223\0021\",/v1/{name=users/*/availability}:ma" + + "rkAsActive:\001*\022\204\001\n\nMarkAsAway\022!.google.ch" + + "at.v1.MarkAsAwayRequest\032\034.google.chat.v1" + + ".Availability\"5\202\323\344\223\002/\"*/v1/{name=users/*" + + "/availability}:markAsAway:\001*\022\234\001\n\022MarkAsD" + + "oNotDisturb\022).google.chat.v1.MarkAsDoNot" + + "DisturbRequest\032\034.google.chat.v1.Availabi" + + "lity\"=\202\323\344\223\0027\"2/v1/{name=users/*/availabi" + + "lity}:markAsDoNotDisturb:\001*\022\274\001\n\022UpdateAv" + + "ailability\022).google.chat.v1.UpdateAvaila" + + "bilityRequest\032\034.google.chat.v1.Availabil" + + "ity\"]\332A\030availability,update_mask\202\323\344\223\002<2," + + "/v1/{availability.name=users/*/availabil" + + "ity}:\014availability\022\203\001\n\rGetSpaceEvent\022$.g" + + "oogle.chat.v1.GetSpaceEventRequest\032\032.goo" + + "gle.chat.v1.SpaceEvent\"0\332A\004name\202\323\344\223\002#\022!/" + + "v1/{name=spaces/*/spaceEvents/*}\022\235\001\n\017Lis" + + "tSpaceEvents\022&.google.chat.v1.ListSpaceE" + + "ventsRequest\032\'.google.chat.v1.ListSpaceE" + + "ventsResponse\"9\332A\rparent,filter\202\323\344\223\002#\022!/" + + "v1/{parent=spaces/*}/spaceEvents\022\300\001\n\033Get" + + "SpaceNotificationSetting\0222.google.chat.v" + + "1.GetSpaceNotificationSettingRequest\032(.g" + + "oogle.chat.v1.SpaceNotificationSetting\"C" + + "\332A\004name\202\323\344\223\0026\0224/v1/{name=users/*/spaces/" + + "*/spaceNotificationSetting}\022\240\002\n\036UpdateSp" + + "aceNotificationSetting\0225.google.chat.v1." + + "UpdateSpaceNotificationSettingRequest\032(." + + "google.chat.v1.SpaceNotificationSetting\"" + + "\234\001\332A&space_notification_setting,update_m" + + "ask\202\323\344\223\002m2O/v1/{space_notification_setti" + + "ng.name=users/*/spaces/*/spaceNotificati" + + "onSetting}:\032space_notification_setting\022\217" + + "\001\n\rCreateSection\022$.google.chat.v1.Create" + + "SectionRequest\032\027.google.chat.v1.Section\"" + + "?\332A\016parent,section\202\323\344\223\002(\"\035/v1/{parent=us" + + "ers/*}/sections:\007section\022{\n\rDeleteSectio" + + "n\022$.google.chat.v1.DeleteSectionRequest\032" + + "\026.google.protobuf.Empty\",\332A\004name\202\323\344\223\002\037*\035" + + "/v1/{name=users/*/sections/*}\022\234\001\n\rUpdate" + + "Section\022$.google.chat.v1.UpdateSectionRe" + + "quest\032\027.google.chat.v1.Section\"L\332A\023secti" + + "on,update_mask\202\323\344\223\00202%/v1/{section.name=" + + "users/*/sections/*}:\007section\022\211\001\n\014ListSec" + + "tions\022#.google.chat.v1.ListSectionsReque" + + "st\032$.google.chat.v1.ListSectionsResponse" + + "\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent=users/*}/" + + "sections\022\225\001\n\017PositionSection\022&.google.ch" + + "at.v1.PositionSectionRequest\032\'.google.ch" + + "at.v1.PositionSectionResponse\"1\202\323\344\223\002+\"&/" + + "v1/{name=users/*/sections/*}:position:\001*" + + "\022\235\001\n\020ListSectionItems\022\'.google.chat.v1.L" + + "istSectionItemsRequest\032(.google.chat.v1." + + "ListSectionItemsResponse\"6\332A\006parent\202\323\344\223\002" + + "\'\022%/v1/{parent=users/*/sections/*}/items" + + "\022\257\001\n\017MoveSectionItem\022&.google.chat.v1.Mo" + + "veSectionItemRequest\032\'.google.chat.v1.Mo" + + "veSectionItemResponse\"K\332A\023name,target_se" + + "ction\202\323\344\223\002/\"*/v1/{name=users/*/sections/" + + "*/items/*}:move:\001*\032\267\017\312A\023chat.googleapis." + + "com\322A\235\017https://www.googleapis.com/auth/c" + + "hat.admin.delete,https://www.googleapis." + + "com/auth/chat.admin.memberships,https://" + + "www.googleapis.com/auth/chat.admin.membe" + + "rships.readonly,https://www.googleapis.c" + + "om/auth/chat.admin.spaces,https://www.go" + + "ogleapis.com/auth/chat.admin.spaces.read" + + "only,https://www.googleapis.com/auth/cha" + + "t.app.delete,https://www.googleapis.com/" + + "auth/chat.app.memberships,https://www.go" + + "ogleapis.com/auth/chat.app.memberships.r" + + "eadonly,https://www.googleapis.com/auth/" + + "chat.app.messages.readonly,https://www.g" + + "oogleapis.com/auth/chat.app.spaces,https" + + "://www.googleapis.com/auth/chat.app.spac" + + "es.create,https://www.googleapis.com/aut" + + "h/chat.app.spaces.readonly,https://www.g" + + "oogleapis.com/auth/chat.bot,https://www." + + "googleapis.com/auth/chat.customemojis,ht" + + "tps://www.googleapis.com/auth/chat.custo" + + "memojis.readonly,https://www.googleapis." + + "com/auth/chat.delete,https://www.googlea" + + "pis.com/auth/chat.import,https://www.goo" + + "gleapis.com/auth/chat.memberships,https:" + + "//www.googleapis.com/auth/chat.membershi" + + "ps.app,https://www.googleapis.com/auth/c" + + "hat.memberships.readonly,https://www.goo" + + "gleapis.com/auth/chat.messages,https://w" + + "ww.googleapis.com/auth/chat.messages.cre" + + "ate,https://www.googleapis.com/auth/chat" + + ".messages.reactions,https://www.googleap" + + "is.com/auth/chat.messages.reactions.crea" + + "te,https://www.googleapis.com/auth/chat." + + "messages.reactions.readonly,https://www." + + "googleapis.com/auth/chat.messages.readon" + + "ly,https://www.googleapis.com/auth/chat." + + "spaces,https://www.googleapis.com/auth/c" + + "hat.spaces.create,https://www.googleapis" + + ".com/auth/chat.spaces.readonly,https://w" + + "ww.googleapis.com/auth/chat.users.availa" + + "bility,https://www.googleapis.com/auth/c" + + "hat.users.availability.readonly,https://" + + "www.googleapis.com/auth/chat.users.reads" + + "tate,https://www.googleapis.com/auth/cha" + + "t.users.readstate.readonly,https://www.g" + + "oogleapis.com/auth/chat.users.sections,h" + + "ttps://www.googleapis.com/auth/chat.user" + + "s.sections.readonly,https://www.googleap" + + "is.com/auth/chat.users.spacesettingsB\251\001\n" + + "\022com.google.chat.v1B\020ChatServiceProtoP\001Z" + + ",cloud.google.com/go/chat/apiv1/chatpb;c" + + "hatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V" + + "1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::" + + "Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageNotificationOptions.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageNotificationOptions.java index 8e19be3fbb49..3730d70e8cab 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageNotificationOptions.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageNotificationOptions.java @@ -113,9 +113,9 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum * * *
-     * Silence the notification as if the recipients have [Chat Do Not
-     * Disturb](https://support.google.com/chat/answer/9093489) enabled or
-     * have muted the space.
+     * Do not notify recipients, and do not mark the message as unread.
+     * This behaves similarly to the user muting the conversation or enabling
+     * [Chat Do Not Disturb](https://support.google.com/chat/answer/9093489).
      *
      * Requires [app authentication]
      * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
@@ -171,9 +171,9 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum
      *
      *
      * 
-     * Silence the notification as if the recipients have [Chat Do Not
-     * Disturb](https://support.google.com/chat/answer/9093489) enabled or
-     * have muted the space.
+     * Do not notify recipients, and do not mark the message as unread.
+     * This behaves similarly to the user muting the conversation or enabling
+     * [Chat Do Not Disturb](https://support.google.com/chat/answer/9093489).
      *
      * Requires [app authentication]
      * (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java
index d2ece8258a89..dcec5d02f0d1 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java
@@ -398,7 +398,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() {
    * 
    *
    * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See
-   *     google/chat/v1/message.proto;l=618
+   *     google/chat/v1/message.proto;l=619
    * @return The threadKey.
    */
   @java.lang.Override
@@ -432,7 +432,7 @@ public java.lang.String getThreadKey() {
    * 
    *
    * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See
-   *     google/chat/v1/message.proto;l=618
+   *     google/chat/v1/message.proto;l=619
    * @return The bytes for threadKey.
    */
   @java.lang.Override
@@ -1543,7 +1543,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() {
      * 
      *
      * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See
-     *     google/chat/v1/message.proto;l=618
+     *     google/chat/v1/message.proto;l=619
      * @return The threadKey.
      */
     @java.lang.Deprecated
@@ -1576,7 +1576,7 @@ public java.lang.String getThreadKey() {
      * 
      *
      * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See
-     *     google/chat/v1/message.proto;l=618
+     *     google/chat/v1/message.proto;l=619
      * @return The bytes for threadKey.
      */
     @java.lang.Deprecated
@@ -1609,7 +1609,7 @@ public com.google.protobuf.ByteString getThreadKeyBytes() {
      * 
      *
      * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See
-     *     google/chat/v1/message.proto;l=618
+     *     google/chat/v1/message.proto;l=619
      * @param value The threadKey to set.
      * @return This builder for chaining.
      */
@@ -1641,7 +1641,7 @@ public Builder setThreadKey(java.lang.String value) {
      * 
      *
      * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See
-     *     google/chat/v1/message.proto;l=618
+     *     google/chat/v1/message.proto;l=619
      * @return This builder for chaining.
      */
     @java.lang.Deprecated
@@ -1669,7 +1669,7 @@ public Builder clearThreadKey() {
      * 
      *
      * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See
-     *     google/chat/v1/message.proto;l=618
+     *     google/chat/v1/message.proto;l=619
      * @param value The bytes for threadKey to set.
      * @return This builder for chaining.
      */
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java
index e468f02d75fa..ac7a995833ad 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java
@@ -114,7 +114,7 @@ public interface CreateMessageRequestOrBuilder
    * 
    *
    * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See
-   *     google/chat/v1/message.proto;l=618
+   *     google/chat/v1/message.proto;l=619
    * @return The threadKey.
    */
   @java.lang.Deprecated
@@ -137,7 +137,7 @@ public interface CreateMessageRequestOrBuilder
    * 
    *
    * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See
-   *     google/chat/v1/message.proto;l=618
+   *     google/chat/v1/message.proto;l=619
    * @return The bytes for threadKey.
    */
   @java.lang.Deprecated
diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java
index 54e3d62bd978..c45f8ecd1cdd 100644
--- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java
+++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Message.java
@@ -499,8 +499,8 @@ public com.google.protobuf.ByteString getTextBytes() {
    *
    * * [Markup
    * syntax](https://developers.google.com/workspace/chat/format-messages)
-   * for bold, italic, strikethrough, monospace, monospace block, and bulleted
-   * list.
+   * for bold, italic, strikethrough, monospace, monospace block, bulleted
+   * list, and block quote.
    *
    * * [User
    * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention)
@@ -547,8 +547,8 @@ public java.lang.String getFormattedText() {
    *
    * * [Markup
    * syntax](https://developers.google.com/workspace/chat/format-messages)
-   * for bold, italic, strikethrough, monospace, monospace block, and bulleted
-   * list.
+   * for bold, italic, strikethrough, monospace, monospace block, bulleted
+   * list, and block quote.
    *
    * * [User
    * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention)
@@ -1363,8 +1363,8 @@ public com.google.chat.v1.AttachmentOrBuilder getAttachmentOrBuilder(int index)
    *
    *
    * 
-   * Output only. A URL in `spaces.messages.text` that matches a link preview
-   * pattern. For more information, see [Preview
+   * Output only. A URL in the Chat message `text` field that matches a link
+   * preview pattern. For more information, see [Preview
    * links](https://developers.google.com/workspace/chat/preview-links).
    * 
* @@ -1382,8 +1382,8 @@ public boolean hasMatchedUrl() { * * *
-   * Output only. A URL in `spaces.messages.text` that matches a link preview
-   * pattern. For more information, see [Preview
+   * Output only. A URL in the Chat message `text` field that matches a link
+   * preview pattern. For more information, see [Preview
    * links](https://developers.google.com/workspace/chat/preview-links).
    * 
* @@ -1401,8 +1401,8 @@ public com.google.chat.v1.MatchedUrl getMatchedUrl() { * * *
-   * Output only. A URL in `spaces.messages.text` that matches a link preview
-   * pattern. For more information, see [Preview
+   * Output only. A URL in the Chat message `text` field that matches a link
+   * preview pattern. For more information, see [Preview
    * links](https://developers.google.com/workspace/chat/preview-links).
    * 
* @@ -4720,8 +4720,8 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { * * * [Markup * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. + * for bold, italic, strikethrough, monospace, monospace block, bulleted + * list, and block quote. * * * [User * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) @@ -4767,8 +4767,8 @@ public java.lang.String getFormattedText() { * * * [Markup * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. + * for bold, italic, strikethrough, monospace, monospace block, bulleted + * list, and block quote. * * * [User * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) @@ -4814,8 +4814,8 @@ public com.google.protobuf.ByteString getFormattedTextBytes() { * * * [Markup * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. + * for bold, italic, strikethrough, monospace, monospace block, bulleted + * list, and block quote. * * * [User * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) @@ -4860,8 +4860,8 @@ public Builder setFormattedText(java.lang.String value) { * * * [Markup * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. + * for bold, italic, strikethrough, monospace, monospace block, bulleted + * list, and block quote. * * * [User * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) @@ -4902,8 +4902,8 @@ public Builder clearFormattedText() { * * * [Markup * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. + * for bold, italic, strikethrough, monospace, monospace block, bulleted + * list, and block quote. * * * [User * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) @@ -7954,8 +7954,8 @@ public java.util.List getAttachmentBuilde * * *
-     * Output only. A URL in `spaces.messages.text` that matches a link preview
-     * pattern. For more information, see [Preview
+     * Output only. A URL in the Chat message `text` field that matches a link
+     * preview pattern. For more information, see [Preview
      * links](https://developers.google.com/workspace/chat/preview-links).
      * 
* @@ -7973,8 +7973,8 @@ public boolean hasMatchedUrl() { * * *
-     * Output only. A URL in `spaces.messages.text` that matches a link preview
-     * pattern. For more information, see [Preview
+     * Output only. A URL in the Chat message `text` field that matches a link
+     * preview pattern. For more information, see [Preview
      * links](https://developers.google.com/workspace/chat/preview-links).
      * 
* @@ -7998,8 +7998,8 @@ public com.google.chat.v1.MatchedUrl getMatchedUrl() { * * *
-     * Output only. A URL in `spaces.messages.text` that matches a link preview
-     * pattern. For more information, see [Preview
+     * Output only. A URL in the Chat message `text` field that matches a link
+     * preview pattern. For more information, see [Preview
      * links](https://developers.google.com/workspace/chat/preview-links).
      * 
* @@ -8025,8 +8025,8 @@ public Builder setMatchedUrl(com.google.chat.v1.MatchedUrl value) { * * *
-     * Output only. A URL in `spaces.messages.text` that matches a link preview
-     * pattern. For more information, see [Preview
+     * Output only. A URL in the Chat message `text` field that matches a link
+     * preview pattern. For more information, see [Preview
      * links](https://developers.google.com/workspace/chat/preview-links).
      * 
* @@ -8049,8 +8049,8 @@ public Builder setMatchedUrl(com.google.chat.v1.MatchedUrl.Builder builderForVal * * *
-     * Output only. A URL in `spaces.messages.text` that matches a link preview
-     * pattern. For more information, see [Preview
+     * Output only. A URL in the Chat message `text` field that matches a link
+     * preview pattern. For more information, see [Preview
      * links](https://developers.google.com/workspace/chat/preview-links).
      * 
* @@ -8081,8 +8081,8 @@ public Builder mergeMatchedUrl(com.google.chat.v1.MatchedUrl value) { * * *
-     * Output only. A URL in `spaces.messages.text` that matches a link preview
-     * pattern. For more information, see [Preview
+     * Output only. A URL in the Chat message `text` field that matches a link
+     * preview pattern. For more information, see [Preview
      * links](https://developers.google.com/workspace/chat/preview-links).
      * 
* @@ -8105,8 +8105,8 @@ public Builder clearMatchedUrl() { * * *
-     * Output only. A URL in `spaces.messages.text` that matches a link preview
-     * pattern. For more information, see [Preview
+     * Output only. A URL in the Chat message `text` field that matches a link
+     * preview pattern. For more information, see [Preview
      * links](https://developers.google.com/workspace/chat/preview-links).
      * 
* @@ -8124,8 +8124,8 @@ public com.google.chat.v1.MatchedUrl.Builder getMatchedUrlBuilder() { * * *
-     * Output only. A URL in `spaces.messages.text` that matches a link preview
-     * pattern. For more information, see [Preview
+     * Output only. A URL in the Chat message `text` field that matches a link
+     * preview pattern. For more information, see [Preview
      * links](https://developers.google.com/workspace/chat/preview-links).
      * 
* @@ -8147,8 +8147,8 @@ public com.google.chat.v1.MatchedUrlOrBuilder getMatchedUrlOrBuilder() { * * *
-     * Output only. A URL in `spaces.messages.text` that matches a link preview
-     * pattern. For more information, see [Preview
+     * Output only. A URL in the Chat message `text` field that matches a link
+     * preview pattern. For more information, see [Preview
      * links](https://developers.google.com/workspace/chat/preview-links).
      * 
* diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java index 1f2919a39bcd..32b87c9a6932 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageOrBuilder.java @@ -334,8 +334,8 @@ public interface MessageOrBuilder * * * [Markup * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. + * for bold, italic, strikethrough, monospace, monospace block, bulleted + * list, and block quote. * * * [User * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) @@ -371,8 +371,8 @@ public interface MessageOrBuilder * * * [Markup * syntax](https://developers.google.com/workspace/chat/format-messages) - * for bold, italic, strikethrough, monospace, monospace block, and bulleted - * list. + * for bold, italic, strikethrough, monospace, monospace block, bulleted + * list, and block quote. * * * [User * mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) @@ -980,8 +980,8 @@ public interface MessageOrBuilder * * *
-   * Output only. A URL in `spaces.messages.text` that matches a link preview
-   * pattern. For more information, see [Preview
+   * Output only. A URL in the Chat message `text` field that matches a link
+   * preview pattern. For more information, see [Preview
    * links](https://developers.google.com/workspace/chat/preview-links).
    * 
* @@ -996,8 +996,8 @@ public interface MessageOrBuilder * * *
-   * Output only. A URL in `spaces.messages.text` that matches a link preview
-   * pattern. For more information, see [Preview
+   * Output only. A URL in the Chat message `text` field that matches a link
+   * preview pattern. For more information, see [Preview
    * links](https://developers.google.com/workspace/chat/preview-links).
    * 
* @@ -1012,8 +1012,8 @@ public interface MessageOrBuilder * * *
-   * Output only. A URL in `spaces.messages.text` that matches a link preview
-   * pattern. For more information, see [Preview
+   * Output only. A URL in the Chat message `text` field that matches a link
+   * preview pattern. For more information, see [Preview
    * links](https://developers.google.com/workspace/chat/preview-links).
    * 
* diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 9bba0d3f8822..46c021ffb966 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -120,6 +120,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_chat_v1_CardWithId_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_chat_v1_CardWithId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_SearchMessagesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_SearchMessagesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_SearchMessagesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_SearchMessagesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_SearchMessageResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_SearchMessageResult_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -140,7 +152,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&google/chat/v1/deletion_metadata.proto\032" + " google/chat/v1/matched_url.proto\032\035googl" + "e/chat/v1/reaction.proto\032\"google/chat/v1" - + "/slash_command.proto\032\032google/chat/v1/space.proto\032\031google/chat/v1/user.proto\032" + + "/slash_command.proto\032\032google/chat/v1/spa" + + "ce.proto\032/google/chat/v1/space_notificat" + + "ion_setting.proto\032\031google/chat/v1/user.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\351\n\n" + "\007Message\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022)\n" @@ -192,18 +206,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033chat.googleapis.com/Message\0229\n" + "\020last_update_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022H\n\n" - + "quote_type\030\004 \001(\0162" - + "/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\003\340A\001\022K\n" + + "quote_type\030\004" + + " \001(\0162/.google.chat.v1.QuotedMessageMetadata.QuoteTypeB\003\340A\001\022K\n" + "\027quoted_message_snapshot\030\005" + " \001(\0132%.google.chat.v1.QuotedMessageSnapshotB\003\340A\003\022B\n" - + "\022forwarded_metadata\030\006 \001(\0132!" - + ".google.chat.v1.ForwardedMetadataB\003\340A\003\"?\n" + + "\022forwarded_metadata\030\006" + + " \001(\0132!.google.chat.v1.ForwardedMetadataB\003\340A\003\"?\n" + "\tQuoteType\022\032\n" + "\026QUOTE_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005REPLY\020\001\022\013\n" + "\007FORWARD\020\002:\201\001\352A~\n" - + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces" - + "/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\310\001\n" + + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/messages/{message}/quo" + + "tedMessageMetadata/{quoted_message_metadata}\"\310\001\n" + "\025QuotedMessageSnapshot\022\023\n" + "\006sender\030\001 \001(\tB\003\340A\003\022\021\n" + "\004text\030\002 \001(\tB\003\340A\003\022\033\n" @@ -254,8 +268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024UpdateMessageRequest\022-\n" + "\007message\030\001 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\032\n" - + "\r" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\032\n\r" + "allow_missing\030\004 \001(\010B\003\340A\001\"\210\004\n" + "\024CreateMessageRequest\0223\n" + "\006parent\030\001 \001(" @@ -263,8 +276,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007message\030\004 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\022\031\n\n" + "thread_key\030\006 \001(\tB\005\030\001\340A\001\022\027\n\n" + "request_id\030\007 \001(\tB\003\340A\001\022Z\n" - + "\024message_reply_option\030\010 \001(\01627.googl" - + "e.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + + "\024message_reply_option\030\010 \001(" + + "\01627.google.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + "message_id\030\t \001(\tB\003\340A\001\022b\n" + "#create_message_notification_options\030\n" + " \001(\01320.google.chat.v1.CreateMessageNotificationOptionsB\003\340A\001\"\177\n" @@ -273,8 +286,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\020\001\022\031\n" + "\025REPLY_MESSAGE_OR_FAIL\020\002\"\362\001\n" + " CreateMessageNotificationOptions\022\\\n" - + "\021notification_type\030\001 \001(\0162A.google.chat.v1.CreateMess" - + "ageNotificationOptions.NotificationType\"p\n" + + "\021notification_type\030\001 \001(\0162A.google.chat.v1.C" + + "reateMessageNotificationOptions.NotificationType\"p\n" + "\020NotificationType\022\032\n" + "\026NOTIFICATION_TYPE_NONE\020\000\022\"\n" + "\036NOTIFICATION_TYPE_FORCE_NOTIFY\020\002\022\034\n" @@ -298,11 +311,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004body\030\001 \001(\0132\031.google.apps.card.v1.CardB\003\340A\004\"F\n\n" + "CardWithId\022\017\n" + "\007card_id\030\001 \001(\t\022\'\n" - + "\004card\030\002 \001(\0132\031.google.apps.card.v1.CardB\245\001\n" - + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/" - + "go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIProt" - + "o\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps\\Ch" - + "at\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "\004card\030\002 \001(\0132\031.google.apps.card.v1.Card\"\357\002\n" + + "\025SearchMessagesRequest\0221\n" + + "\006parent\030\001 \001(\tB!\340A\002\372A\033\n" + + "\031chat.googleapis.com/Space\022\023\n" + + "\006filter\030\002 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022K\n" + + "\004view\030\007 \001(\01628.google.chat.v1.SearchM" + + "essagesRequest.SearchMessagesViewB\003\340A\001\"y\n" + + "\022SearchMessagesView\022$\n" + + " SEARCH_MESSAGES_VIEW_UNSPECIFIED\020\000\022\036\n" + + "\032SEARCH_MESSAGES_VIEW_BASIC\020\001\022\035\n" + + "\031SEARCH_MESSAGES_VIEW_FULL\020\002\"g\n" + + "\026SearchMessagesResponse\0224\n" + + "\007results\030\001 \003(\0132#.google.chat.v1.SearchMessageResult\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\255\001\n" + + "\023SearchMessageResult\022(\n" + + "\007message\030\001 \001(\0132\027.google.chat.v1.Message\022\021\n" + + "\004read\030\003 \001(\010H\000\210\001\001\022P\n" + + "\022space_mute_setting\030\004" + + " \001(\01624.google.chat.v1.SpaceNotificationSetting.MuteSettingB\007\n" + + "\005_readB\245\001\n" + + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat/apiv1/chatpb" + + ";chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat" + + ".V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -320,6 +354,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.ReactionProto.getDescriptor(), com.google.chat.v1.SlashCommandProto.getDescriptor(), com.google.chat.v1.SpaceProto.getDescriptor(), + com.google.chat.v1.SpaceNotificationSettingProto.getDescriptor(), com.google.chat.v1.UserProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -506,6 +541,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CardId", "Card", }); + internal_static_google_chat_v1_SearchMessagesRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_chat_v1_SearchMessagesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_SearchMessagesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "View", + }); + internal_static_google_chat_v1_SearchMessagesResponse_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_chat_v1_SearchMessagesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_SearchMessagesResponse_descriptor, + new java.lang.String[] { + "Results", "NextPageToken", + }); + internal_static_google_chat_v1_SearchMessageResult_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_chat_v1_SearchMessageResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_SearchMessageResult_descriptor, + new java.lang.String[] { + "Message", "Read", "SpaceMuteSetting", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); @@ -519,6 +578,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.chat.v1.ReactionProto.getDescriptor(); com.google.chat.v1.SlashCommandProto.getDescriptor(); com.google.chat.v1.SpaceProto.getDescriptor(); + com.google.chat.v1.SpaceNotificationSettingProto.getDescriptor(); com.google.chat.v1.UserProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessageResult.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessageResult.java new file mode 100644 index 000000000000..fa73b0d38814 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessageResult.java @@ -0,0 +1,1085 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * A single result item from a message search.
+ * 
+ * + * Protobuf type {@code google.chat.v1.SearchMessageResult} + */ +@com.google.protobuf.Generated +public final class SearchMessageResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.SearchMessageResult) + SearchMessageResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchMessageResult"); + } + + // Use SearchMessageResult.newBuilder() to construct. + private SearchMessageResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchMessageResult() { + spaceMuteSetting_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessageResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessageResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SearchMessageResult.class, + com.google.chat.v1.SearchMessageResult.Builder.class); + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + private com.google.chat.v1.Message message_; + + /** + * + * + *
+   * The matched message.
+   * 
+ * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + @java.lang.Override + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The matched message.
+   * 
+ * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + @java.lang.Override + public com.google.chat.v1.Message getMessage() { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + + /** + * + * + *
+   * The matched message.
+   * 
+ * + * .google.chat.v1.Message message = 1; + */ + @java.lang.Override + public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + + public static final int READ_FIELD_NUMBER = 3; + private boolean read_ = false; + + /** + * + * + *
+   * Indicates if the matched message is read by the calling user.
+   *
+   * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+   * calling credentials include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+   * - `https://www.googleapis.com/auth/chat.users.readstate`
+   * 
+ * + * optional bool read = 3; + * + * @return Whether the read field is set. + */ + @java.lang.Override + public boolean hasRead() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Indicates if the matched message is read by the calling user.
+   *
+   * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+   * calling credentials include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+   * - `https://www.googleapis.com/auth/chat.users.readstate`
+   * 
+ * + * optional bool read = 3; + * + * @return The read. + */ + @java.lang.Override + public boolean getRead() { + return read_; + } + + public static final int SPACE_MUTE_SETTING_FIELD_NUMBER = 4; + private int spaceMuteSetting_ = 0; + + /** + * + * + *
+   * The mute setting of the calling user for the space where the message is
+   * posted. The caller app can use this information to decide how to process
+   * the message depending on whether the space is muted for the user or not.
+   *
+   * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+   * calling credentials include the following [authorization
+   * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.spacesettings`
+   * 
+ * + * .google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4; + * + * @return The enum numeric value on the wire for spaceMuteSetting. + */ + @java.lang.Override + public int getSpaceMuteSettingValue() { + return spaceMuteSetting_; + } + + /** + * + * + *
+   * The mute setting of the calling user for the space where the message is
+   * posted. The caller app can use this information to decide how to process
+   * the message depending on whether the space is muted for the user or not.
+   *
+   * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+   * calling credentials include the following [authorization
+   * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.spacesettings`
+   * 
+ * + * .google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4; + * + * @return The spaceMuteSetting. + */ + @java.lang.Override + public com.google.chat.v1.SpaceNotificationSetting.MuteSetting getSpaceMuteSetting() { + com.google.chat.v1.SpaceNotificationSetting.MuteSetting result = + com.google.chat.v1.SpaceNotificationSetting.MuteSetting.forNumber(spaceMuteSetting_); + return result == null + ? com.google.chat.v1.SpaceNotificationSetting.MuteSetting.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getMessage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(3, read_); + } + if (spaceMuteSetting_ + != com.google.chat.v1.SpaceNotificationSetting.MuteSetting.MUTE_SETTING_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, spaceMuteSetting_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMessage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, read_); + } + if (spaceMuteSetting_ + != com.google.chat.v1.SpaceNotificationSetting.MuteSetting.MUTE_SETTING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, spaceMuteSetting_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.SearchMessageResult)) { + return super.equals(obj); + } + com.google.chat.v1.SearchMessageResult other = (com.google.chat.v1.SearchMessageResult) obj; + + if (hasMessage() != other.hasMessage()) return false; + if (hasMessage()) { + if (!getMessage().equals(other.getMessage())) return false; + } + if (hasRead() != other.hasRead()) return false; + if (hasRead()) { + if (getRead() != other.getRead()) return false; + } + if (spaceMuteSetting_ != other.spaceMuteSetting_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + if (hasRead()) { + hash = (37 * hash) + READ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRead()); + } + hash = (37 * hash) + SPACE_MUTE_SETTING_FIELD_NUMBER; + hash = (53 * hash) + spaceMuteSetting_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.SearchMessageResult parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SearchMessageResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessageResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SearchMessageResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessageResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SearchMessageResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessageResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SearchMessageResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessageResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SearchMessageResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessageResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SearchMessageResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.SearchMessageResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A single result item from a message search.
+   * 
+ * + * Protobuf type {@code google.chat.v1.SearchMessageResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.SearchMessageResult) + com.google.chat.v1.SearchMessageResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessageResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessageResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SearchMessageResult.class, + com.google.chat.v1.SearchMessageResult.Builder.class); + } + + // Construct using com.google.chat.v1.SearchMessageResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessageFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + read_ = false; + spaceMuteSetting_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessageResult_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.SearchMessageResult getDefaultInstanceForType() { + return com.google.chat.v1.SearchMessageResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.SearchMessageResult build() { + com.google.chat.v1.SearchMessageResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.SearchMessageResult buildPartial() { + com.google.chat.v1.SearchMessageResult result = + new com.google.chat.v1.SearchMessageResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.SearchMessageResult result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.read_ = read_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.spaceMuteSetting_ = spaceMuteSetting_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.SearchMessageResult) { + return mergeFrom((com.google.chat.v1.SearchMessageResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.SearchMessageResult other) { + if (other == com.google.chat.v1.SearchMessageResult.getDefaultInstance()) return this; + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + if (other.hasRead()) { + setRead(other.getRead()); + } + if (other.spaceMuteSetting_ != 0) { + setSpaceMuteSettingValue(other.getSpaceMuteSettingValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetMessageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + read_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + spaceMuteSetting_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.Message message_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder> + messageBuilder_; + + /** + * + * + *
+     * The matched message.
+     * 
+ * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The matched message.
+     * 
+ * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + public com.google.chat.v1.Message getMessage() { + if (messageBuilder_ == null) { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } else { + return messageBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The matched message.
+     * 
+ * + * .google.chat.v1.Message message = 1; + */ + public Builder setMessage(com.google.chat.v1.Message value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + } else { + messageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The matched message.
+     * 
+ * + * .google.chat.v1.Message message = 1; + */ + public Builder setMessage(com.google.chat.v1.Message.Builder builderForValue) { + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The matched message.
+     * 
+ * + * .google.chat.v1.Message message = 1; + */ + public Builder mergeMessage(com.google.chat.v1.Message value) { + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && message_ != null + && message_ != com.google.chat.v1.Message.getDefaultInstance()) { + getMessageBuilder().mergeFrom(value); + } else { + message_ = value; + } + } else { + messageBuilder_.mergeFrom(value); + } + if (message_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The matched message.
+     * 
+ * + * .google.chat.v1.Message message = 1; + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000001); + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The matched message.
+     * 
+ * + * .google.chat.v1.Message message = 1; + */ + public com.google.chat.v1.Message.Builder getMessageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetMessageFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The matched message.
+     * 
+ * + * .google.chat.v1.Message message = 1; + */ + public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null ? com.google.chat.v1.Message.getDefaultInstance() : message_; + } + } + + /** + * + * + *
+     * The matched message.
+     * 
+ * + * .google.chat.v1.Message message = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder> + internalGetMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.Message, + com.google.chat.v1.Message.Builder, + com.google.chat.v1.MessageOrBuilder>( + getMessage(), getParentForChildren(), isClean()); + message_ = null; + } + return messageBuilder_; + } + + private boolean read_; + + /** + * + * + *
+     * Indicates if the matched message is read by the calling user.
+     *
+     * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+     * calling credentials include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+     * - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ * + * optional bool read = 3; + * + * @return Whether the read field is set. + */ + @java.lang.Override + public boolean hasRead() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Indicates if the matched message is read by the calling user.
+     *
+     * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+     * calling credentials include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+     * - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ * + * optional bool read = 3; + * + * @return The read. + */ + @java.lang.Override + public boolean getRead() { + return read_; + } + + /** + * + * + *
+     * Indicates if the matched message is read by the calling user.
+     *
+     * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+     * calling credentials include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+     * - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ * + * optional bool read = 3; + * + * @param value The read to set. + * @return This builder for chaining. + */ + public Builder setRead(boolean value) { + + read_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Indicates if the matched message is read by the calling user.
+     *
+     * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+     * calling credentials include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+     * - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ * + * optional bool read = 3; + * + * @return This builder for chaining. + */ + public Builder clearRead() { + bitField0_ = (bitField0_ & ~0x00000002); + read_ = false; + onChanged(); + return this; + } + + private int spaceMuteSetting_ = 0; + + /** + * + * + *
+     * The mute setting of the calling user for the space where the message is
+     * posted. The caller app can use this information to decide how to process
+     * the message depending on whether the space is muted for the user or not.
+     *
+     * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+     * calling credentials include the following [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.spacesettings`
+     * 
+ * + * .google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4; + * + * @return The enum numeric value on the wire for spaceMuteSetting. + */ + @java.lang.Override + public int getSpaceMuteSettingValue() { + return spaceMuteSetting_; + } + + /** + * + * + *
+     * The mute setting of the calling user for the space where the message is
+     * posted. The caller app can use this information to decide how to process
+     * the message depending on whether the space is muted for the user or not.
+     *
+     * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+     * calling credentials include the following [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.spacesettings`
+     * 
+ * + * .google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4; + * + * @param value The enum numeric value on the wire for spaceMuteSetting to set. + * @return This builder for chaining. + */ + public Builder setSpaceMuteSettingValue(int value) { + spaceMuteSetting_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The mute setting of the calling user for the space where the message is
+     * posted. The caller app can use this information to decide how to process
+     * the message depending on whether the space is muted for the user or not.
+     *
+     * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+     * calling credentials include the following [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.spacesettings`
+     * 
+ * + * .google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4; + * + * @return The spaceMuteSetting. + */ + @java.lang.Override + public com.google.chat.v1.SpaceNotificationSetting.MuteSetting getSpaceMuteSetting() { + com.google.chat.v1.SpaceNotificationSetting.MuteSetting result = + com.google.chat.v1.SpaceNotificationSetting.MuteSetting.forNumber(spaceMuteSetting_); + return result == null + ? com.google.chat.v1.SpaceNotificationSetting.MuteSetting.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The mute setting of the calling user for the space where the message is
+     * posted. The caller app can use this information to decide how to process
+     * the message depending on whether the space is muted for the user or not.
+     *
+     * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+     * calling credentials include the following [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.spacesettings`
+     * 
+ * + * .google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4; + * + * @param value The spaceMuteSetting to set. + * @return This builder for chaining. + */ + public Builder setSpaceMuteSetting( + com.google.chat.v1.SpaceNotificationSetting.MuteSetting value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + spaceMuteSetting_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The mute setting of the calling user for the space where the message is
+     * posted. The caller app can use this information to decide how to process
+     * the message depending on whether the space is muted for the user or not.
+     *
+     * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+     * calling credentials include the following [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.spacesettings`
+     * 
+ * + * .google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4; + * + * @return This builder for chaining. + */ + public Builder clearSpaceMuteSetting() { + bitField0_ = (bitField0_ & ~0x00000004); + spaceMuteSetting_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.SearchMessageResult) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.SearchMessageResult) + private static final com.google.chat.v1.SearchMessageResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.SearchMessageResult(); + } + + public static com.google.chat.v1.SearchMessageResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchMessageResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.SearchMessageResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessageResultOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessageResultOrBuilder.java new file mode 100644 index 000000000000..17ec76b1ba8b --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessageResultOrBuilder.java @@ -0,0 +1,147 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface SearchMessageResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.SearchMessageResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The matched message.
+   * 
+ * + * .google.chat.v1.Message message = 1; + * + * @return Whether the message field is set. + */ + boolean hasMessage(); + + /** + * + * + *
+   * The matched message.
+   * 
+ * + * .google.chat.v1.Message message = 1; + * + * @return The message. + */ + com.google.chat.v1.Message getMessage(); + + /** + * + * + *
+   * The matched message.
+   * 
+ * + * .google.chat.v1.Message message = 1; + */ + com.google.chat.v1.MessageOrBuilder getMessageOrBuilder(); + + /** + * + * + *
+   * Indicates if the matched message is read by the calling user.
+   *
+   * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+   * calling credentials include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+   * - `https://www.googleapis.com/auth/chat.users.readstate`
+   * 
+ * + * optional bool read = 3; + * + * @return Whether the read field is set. + */ + boolean hasRead(); + + /** + * + * + *
+   * Indicates if the matched message is read by the calling user.
+   *
+   * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+   * calling credentials include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+   * - `https://www.googleapis.com/auth/chat.users.readstate`
+   * 
+ * + * optional bool read = 3; + * + * @return The read. + */ + boolean getRead(); + + /** + * + * + *
+   * The mute setting of the calling user for the space where the message is
+   * posted. The caller app can use this information to decide how to process
+   * the message depending on whether the space is muted for the user or not.
+   *
+   * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+   * calling credentials include the following [authorization
+   * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.spacesettings`
+   * 
+ * + * .google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4; + * + * @return The enum numeric value on the wire for spaceMuteSetting. + */ + int getSpaceMuteSettingValue(); + + /** + * + * + *
+   * The mute setting of the calling user for the space where the message is
+   * posted. The caller app can use this information to decide how to process
+   * the message depending on whether the space is muted for the user or not.
+   *
+   * Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
+   * calling credentials include the following [authorization
+   * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.spacesettings`
+   * 
+ * + * .google.chat.v1.SpaceNotificationSetting.MuteSetting space_mute_setting = 4; + * + * @return The spaceMuteSetting. + */ + com.google.chat.v1.SpaceNotificationSetting.MuteSetting getSpaceMuteSetting(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java new file mode 100644 index 000000000000..0a46e12262a8 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequest.java @@ -0,0 +1,2682 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * Request message for searching messages.
+ * 
+ * + * Protobuf type {@code google.chat.v1.SearchMessagesRequest} + */ +@com.google.protobuf.Generated +public final class SearchMessagesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.SearchMessagesRequest) + SearchMessagesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchMessagesRequest"); + } + + // Use SearchMessagesRequest.newBuilder() to construct. + private SearchMessagesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchMessagesRequest() { + parent_ = ""; + filter_ = ""; + pageToken_ = ""; + orderBy_ = ""; + view_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SearchMessagesRequest.class, + com.google.chat.v1.SearchMessagesRequest.Builder.class); + } + + /** + * + * + *
+   * The kinds of view that are supported for partial search results.
+   * 
+ * + * Protobuf enum {@code google.chat.v1.SearchMessagesRequest.SearchMessagesView} + */ + public enum SearchMessagesView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The default / unset value.
+     * The API will default to the BASIC view.
+     * 
+ * + * SEARCH_MESSAGES_VIEW_UNSPECIFIED = 0; + */ + SEARCH_MESSAGES_VIEW_UNSPECIFIED(0), + /** + * + * + *
+     * Includes only the matched messages in the results, but no additional
+     * metadata. This is the default value.
+     * 
+ * + * SEARCH_MESSAGES_VIEW_BASIC = 1; + */ + SEARCH_MESSAGES_VIEW_BASIC(1), + /** + * + * + *
+     * Includes everything in the results: the matched messages and additional
+     * metadata.
+     * 
+ * + * SEARCH_MESSAGES_VIEW_FULL = 2; + */ + SEARCH_MESSAGES_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchMessagesView"); + } + + /** + * + * + *
+     * The default / unset value.
+     * The API will default to the BASIC view.
+     * 
+ * + * SEARCH_MESSAGES_VIEW_UNSPECIFIED = 0; + */ + public static final int SEARCH_MESSAGES_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Includes only the matched messages in the results, but no additional
+     * metadata. This is the default value.
+     * 
+ * + * SEARCH_MESSAGES_VIEW_BASIC = 1; + */ + public static final int SEARCH_MESSAGES_VIEW_BASIC_VALUE = 1; + + /** + * + * + *
+     * Includes everything in the results: the matched messages and additional
+     * metadata.
+     * 
+ * + * SEARCH_MESSAGES_VIEW_FULL = 2; + */ + public static final int SEARCH_MESSAGES_VIEW_FULL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SearchMessagesView 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 SearchMessagesView forNumber(int value) { + switch (value) { + case 0: + return SEARCH_MESSAGES_VIEW_UNSPECIFIED; + case 1: + return SEARCH_MESSAGES_VIEW_BASIC; + case 2: + return SEARCH_MESSAGES_VIEW_FULL; + 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 SearchMessagesView findValueByNumber(int number) { + return SearchMessagesView.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.chat.v1.SearchMessagesRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final SearchMessagesView[] VALUES = values(); + + public static SearchMessagesView 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 SearchMessagesView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.chat.v1.SearchMessagesRequest.SearchMessagesView) + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource name of the space to search within.
+   *
+   * To search across all spaces the user has access to, set this field to
+   * `spaces/-`. Using any other value for `parent` results in an
+   * `INVALID_ARGUMENT` error.
+   *
+   * To limit the search to one or more spaces, use `space.name` or
+   * `space.display_name` in the `filter`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the space to search within.
+   *
+   * To search across all spaces the user has access to, set this field to
+   * `spaces/-`. Using any other value for `parent` results in an
+   * `INVALID_ARGUMENT` error.
+   *
+   * To limit the search to one or more spaces, use `space.name` or
+   * `space.display_name` in the `filter`.
+   * 
+ * + * + * 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 FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Required. A search query.
+   *
+   * The query can specify one or more search keywords, which are used to filter
+   * the results,
+   *
+   * You can also filter the results using the following message fields:
+   *
+   * - `create_time`: Accepts a timestamp in
+   * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
+   * supported comparison operators are: `<` and `>=`.
+   * - `sender.name`: The resource name of the sender (`users/{user}`). Only
+   * supports `=`. You can use the e-mail as an alias for `{user}`. For
+   * example, `users/example@gmail.com`, where `example@gmail.com` is the
+   * e-mail of the Google Chat user.
+   * - `space.name`: The resource name of the space where the message is posted.
+   * (`spaces/{space}`). Only supports `=`. If this filter is not set, the
+   * search is performed across all direct messages and spaces the user has
+   * access to as a space member.
+   * - `space.display_name`: Supports the operator `:` (has) and filters spaces
+   * based on a partial match of their display name. Results are limited to
+   * the top five space matches. For example, `space.display_name:Project`
+   * searches for messages in the top five spaces that contain the word
+   * "Project" in their display names.
+   * - `attachment`: Supports the operator `:*` (has any) to check for the
+   * presence of attachments. If `attachment:*` is specified, only messages
+   * that have at least one attachment are returned.
+   * - `annotations.user_mentions.user.name`: The resource name of the mentioned
+   * user (`users/{user}`). Only supports `:` (has). For example:
+   * `annotations.user_mentions.user.name:"users/1234567890"` returns only
+   * messages that contain a mention to the specified user. Alternatively, the
+   * alias `me` can be used to filter for messages that mention the caller
+   * user, for example: `annotations.user_mentions.user.name:users/me`. You
+   * can also use the e-mail as an alias for `{user}`, for example,
+   * `users/example@gmail.com`.
+   *
+   * For advanced filtering, the following functions are also available:
+   *
+   * - `has_link()`: Returns only messages that have at least one hyperlink in
+   * the message text.
+   * - `is_unread()`: Filters out messages that have been read by the calling
+   * user.
+   *
+   * Using the `space.display_name` filter requires that the calling credentials
+   * include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.spaces.readonly`
+   * - `https://www.googleapis.com/auth/chat.spaces`
+   *
+   * Using the `is_unread()` filter requires that the calling credentials
+   * include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+   * - `https://www.googleapis.com/auth/chat.users.readstate`
+   *
+   *
+   * Across different fields, only `AND` operators are supported. A valid
+   * example is `sender.name = "users/1234567890" AND is_unread()`. The word
+   * `AND` is optional and is implied if omitted. For example, `sender.name =
+   * "users/1234567890" is_unread()` is valid and is equivalent to the previous
+   * example. An invalid example is `sender.name = "users/1234567890" OR
+   * is_unread()` because `OR` is not supported between different fields.
+   *
+   * Among the same field:
+   *
+   * - `create_time` supports only `AND`, and can only be used to represent
+   * an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
+   * create_time < "2023-01-01T00:00:00+00:00"`.
+   * - `sender.name` supports only the `OR` operator, for example:
+   * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
+   * - `space.name` supports only the `OR` operator, for example:
+   * `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
+   * - `space.display_name` supports the operators `AND` and `OR`, but not a
+   * mix of both. For example:
+   * `space.display_name:Project AND space.display_name:Tasks` returns
+   * messages that are in spaces with display names containing both `Project`
+   * and `Tasks`, whereas
+   * `space.display_name:Project OR space.display_name:Tasks` returns messages
+   * that are in spaces with display names containing either `Project` or
+   * `Tasks` or both.
+   * - `annotations.user_mentions.user.name` supports the operators `AND` and
+   * `OR`, but not a mix of both. For example:
+   * `annotations.user_mentions.user.name:"users/1234567890" AND
+   * annotations.user_mentions.user.name:"users/0987654321"` returns only
+   * messages that mentions both users, whereas
+   * `annotations.user_mentions.user.name:"users/1234567890" OR
+   * annotations.user_mentions.user.name:"users/0987654321"` returns messages
+   * that mention either user or both.
+   *
+   * Parentheses are required to disambiguate operator precedence when combining
+   * `AND` and `OR` operators in the same query. For example:
+   * `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
+   * Otherwise, parentheses are optional.
+   *
+   * The following example queries are valid:
+   *
+   * ```
+   * "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
+   *
+   * sender.name = "users/example@gmail.com"
+   *
+   * annotations.user_mentions.user.name:"users/0987654321"
+   *
+   * attachment:* AND space.name = "spaces/ABCDEFGH"
+   *
+   * tasks AND is_unread() AND sender.name = "users/1234567890"
+   *
+   * "things to do" "urgent"
+   *
+   * (sender.name = "users/1234567890")
+   * AND (create_time < "2023-05-01T00:00:00Z")
+   *
+   * tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
+   *
+   * "project one" is_unread()
+   *
+   * space.display_name:Project tasks
+   * ```
+   *
+   * The maximum query length is 1,000 characters.
+   *
+   * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
+   * error.
+   * 
+ * + * string filter = 2 [(.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. A search query.
+   *
+   * The query can specify one or more search keywords, which are used to filter
+   * the results,
+   *
+   * You can also filter the results using the following message fields:
+   *
+   * - `create_time`: Accepts a timestamp in
+   * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
+   * supported comparison operators are: `<` and `>=`.
+   * - `sender.name`: The resource name of the sender (`users/{user}`). Only
+   * supports `=`. You can use the e-mail as an alias for `{user}`. For
+   * example, `users/example@gmail.com`, where `example@gmail.com` is the
+   * e-mail of the Google Chat user.
+   * - `space.name`: The resource name of the space where the message is posted.
+   * (`spaces/{space}`). Only supports `=`. If this filter is not set, the
+   * search is performed across all direct messages and spaces the user has
+   * access to as a space member.
+   * - `space.display_name`: Supports the operator `:` (has) and filters spaces
+   * based on a partial match of their display name. Results are limited to
+   * the top five space matches. For example, `space.display_name:Project`
+   * searches for messages in the top five spaces that contain the word
+   * "Project" in their display names.
+   * - `attachment`: Supports the operator `:*` (has any) to check for the
+   * presence of attachments. If `attachment:*` is specified, only messages
+   * that have at least one attachment are returned.
+   * - `annotations.user_mentions.user.name`: The resource name of the mentioned
+   * user (`users/{user}`). Only supports `:` (has). For example:
+   * `annotations.user_mentions.user.name:"users/1234567890"` returns only
+   * messages that contain a mention to the specified user. Alternatively, the
+   * alias `me` can be used to filter for messages that mention the caller
+   * user, for example: `annotations.user_mentions.user.name:users/me`. You
+   * can also use the e-mail as an alias for `{user}`, for example,
+   * `users/example@gmail.com`.
+   *
+   * For advanced filtering, the following functions are also available:
+   *
+   * - `has_link()`: Returns only messages that have at least one hyperlink in
+   * the message text.
+   * - `is_unread()`: Filters out messages that have been read by the calling
+   * user.
+   *
+   * Using the `space.display_name` filter requires that the calling credentials
+   * include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.spaces.readonly`
+   * - `https://www.googleapis.com/auth/chat.spaces`
+   *
+   * Using the `is_unread()` filter requires that the calling credentials
+   * include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+   * - `https://www.googleapis.com/auth/chat.users.readstate`
+   *
+   *
+   * Across different fields, only `AND` operators are supported. A valid
+   * example is `sender.name = "users/1234567890" AND is_unread()`. The word
+   * `AND` is optional and is implied if omitted. For example, `sender.name =
+   * "users/1234567890" is_unread()` is valid and is equivalent to the previous
+   * example. An invalid example is `sender.name = "users/1234567890" OR
+   * is_unread()` because `OR` is not supported between different fields.
+   *
+   * Among the same field:
+   *
+   * - `create_time` supports only `AND`, and can only be used to represent
+   * an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
+   * create_time < "2023-01-01T00:00:00+00:00"`.
+   * - `sender.name` supports only the `OR` operator, for example:
+   * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
+   * - `space.name` supports only the `OR` operator, for example:
+   * `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
+   * - `space.display_name` supports the operators `AND` and `OR`, but not a
+   * mix of both. For example:
+   * `space.display_name:Project AND space.display_name:Tasks` returns
+   * messages that are in spaces with display names containing both `Project`
+   * and `Tasks`, whereas
+   * `space.display_name:Project OR space.display_name:Tasks` returns messages
+   * that are in spaces with display names containing either `Project` or
+   * `Tasks` or both.
+   * - `annotations.user_mentions.user.name` supports the operators `AND` and
+   * `OR`, but not a mix of both. For example:
+   * `annotations.user_mentions.user.name:"users/1234567890" AND
+   * annotations.user_mentions.user.name:"users/0987654321"` returns only
+   * messages that mentions both users, whereas
+   * `annotations.user_mentions.user.name:"users/1234567890" OR
+   * annotations.user_mentions.user.name:"users/0987654321"` returns messages
+   * that mention either user or both.
+   *
+   * Parentheses are required to disambiguate operator precedence when combining
+   * `AND` and `OR` operators in the same query. For example:
+   * `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
+   * Otherwise, parentheses are optional.
+   *
+   * The following example queries are valid:
+   *
+   * ```
+   * "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
+   *
+   * sender.name = "users/example@gmail.com"
+   *
+   * annotations.user_mentions.user.name:"users/0987654321"
+   *
+   * attachment:* AND space.name = "spaces/ABCDEFGH"
+   *
+   * tasks AND is_unread() AND sender.name = "users/1234567890"
+   *
+   * "things to do" "urgent"
+   *
+   * (sender.name = "users/1234567890")
+   * AND (create_time < "2023-05-01T00:00:00Z")
+   *
+   * tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
+   *
+   * "project one" is_unread()
+   *
+   * space.display_name:Project tasks
+   * ```
+   *
+   * The maximum query length is 1,000 characters.
+   *
+   * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
+   * error.
+   * 
+ * + * string filter = 2 [(.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 = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of results to return. The service may return
+   * fewer than this value.
+   *
+   * If unspecified, at most 25 are returned.
+   *
+   * The maximum value is 100. If you use a value more than 100, it's
+   * automatically changed to 100.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token, received from the previous search messages call. Provide
+   * this parameter to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided should match the call that
+   * provided the page token. Passing different values to the other parameters
+   * might lead to unexpected results.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A token, received from the previous search messages call. Provide
+   * this parameter to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided should match the call that
+   * provided the page token. Passing different values to the other parameters
+   * might lead to unexpected results.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. How the results list is ordered.
+   *
+   * Supported attributes to order by are:
+   *
+   * - `create_time`: Sorts the results by the time of the message creation.
+   * Default value.
+   * - `relevance`: Sorts the results by relevance.
+   * [Developer Preview](https://developers.google.com/workspace/preview).
+   *
+   * The default ordering is `create_time desc`. Only a single order per query
+   * (`create_time` or `relevance`) is supported. Only descending order (`desc`)
+   * is supported, and it must be specified after the order attribute.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. How the results list is ordered.
+   *
+   * Supported attributes to order by are:
+   *
+   * - `create_time`: Sorts the results by the time of the message creation.
+   * Default value.
+   * - `relevance`: Sorts the results by relevance.
+   * [Developer Preview](https://developers.google.com/workspace/preview).
+   *
+   * The default ordering is `create_time desc`. Only a single order per query
+   * (`create_time` or `relevance`) is supported. Only descending order (`desc`)
+   * is supported, and it must be specified after the order attribute.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 7; + private int view_ = 0; + + /** + * + * + *
+   * Optional. Specifies what kind of search results view to return. The default
+   * is `SEARCH_MESSAGES_VIEW_BASIC`.
+   * 
+ * + * + * .google.chat.v1.SearchMessagesRequest.SearchMessagesView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+   * Optional. Specifies what kind of search results view to return. The default
+   * is `SEARCH_MESSAGES_VIEW_BASIC`.
+   * 
+ * + * + * .google.chat.v1.SearchMessagesRequest.SearchMessagesView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.chat.v1.SearchMessagesRequest.SearchMessagesView getView() { + com.google.chat.v1.SearchMessagesRequest.SearchMessagesView result = + com.google.chat.v1.SearchMessagesRequest.SearchMessagesView.forNumber(view_); + return result == null + ? com.google.chat.v1.SearchMessagesRequest.SearchMessagesView.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + if (view_ + != com.google.chat.v1.SearchMessagesRequest.SearchMessagesView + .SEARCH_MESSAGES_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, view_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + if (view_ + != com.google.chat.v1.SearchMessagesRequest.SearchMessagesView + .SEARCH_MESSAGES_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, view_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.SearchMessagesRequest)) { + return super.equals(obj); + } + com.google.chat.v1.SearchMessagesRequest other = (com.google.chat.v1.SearchMessagesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (view_ != other.view_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + 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) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SearchMessagesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SearchMessagesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.SearchMessagesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for searching messages.
+   * 
+ * + * Protobuf type {@code google.chat.v1.SearchMessagesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.SearchMessagesRequest) + com.google.chat.v1.SearchMessagesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SearchMessagesRequest.class, + com.google.chat.v1.SearchMessagesRequest.Builder.class); + } + + // Construct using com.google.chat.v1.SearchMessagesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + orderBy_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.SearchMessagesRequest getDefaultInstanceForType() { + return com.google.chat.v1.SearchMessagesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.SearchMessagesRequest build() { + com.google.chat.v1.SearchMessagesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.SearchMessagesRequest buildPartial() { + com.google.chat.v1.SearchMessagesRequest result = + new com.google.chat.v1.SearchMessagesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.SearchMessagesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.view_ = view_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.SearchMessagesRequest) { + return mergeFrom((com.google.chat.v1.SearchMessagesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.SearchMessagesRequest other) { + if (other == com.google.chat.v1.SearchMessagesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 56: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The resource name of the space to search within.
+     *
+     * To search across all spaces the user has access to, set this field to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error.
+     *
+     * To limit the search to one or more spaces, use `space.name` or
+     * `space.display_name` in the `filter`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the space to search within.
+     *
+     * To search across all spaces the user has access to, set this field to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error.
+     *
+     * To limit the search to one or more spaces, use `space.name` or
+     * `space.display_name` in the `filter`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the space to search within.
+     *
+     * To search across all spaces the user has access to, set this field to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error.
+     *
+     * To limit the search to one or more spaces, use `space.name` or
+     * `space.display_name` in the `filter`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the space to search within.
+     *
+     * To search across all spaces the user has access to, set this field to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error.
+     *
+     * To limit the search to one or more spaces, use `space.name` or
+     * `space.display_name` in the `filter`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the space to search within.
+     *
+     * To search across all spaces the user has access to, set this field to
+     * `spaces/-`. Using any other value for `parent` results in an
+     * `INVALID_ARGUMENT` error.
+     *
+     * To limit the search to one or more spaces, use `space.name` or
+     * `space.display_name` in the `filter`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Required. A search query.
+     *
+     * The query can specify one or more search keywords, which are used to filter
+     * the results,
+     *
+     * You can also filter the results using the following message fields:
+     *
+     * - `create_time`: Accepts a timestamp in
+     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
+     * supported comparison operators are: `<` and `>=`.
+     * - `sender.name`: The resource name of the sender (`users/{user}`). Only
+     * supports `=`. You can use the e-mail as an alias for `{user}`. For
+     * example, `users/example@gmail.com`, where `example@gmail.com` is the
+     * e-mail of the Google Chat user.
+     * - `space.name`: The resource name of the space where the message is posted.
+     * (`spaces/{space}`). Only supports `=`. If this filter is not set, the
+     * search is performed across all direct messages and spaces the user has
+     * access to as a space member.
+     * - `space.display_name`: Supports the operator `:` (has) and filters spaces
+     * based on a partial match of their display name. Results are limited to
+     * the top five space matches. For example, `space.display_name:Project`
+     * searches for messages in the top five spaces that contain the word
+     * "Project" in their display names.
+     * - `attachment`: Supports the operator `:*` (has any) to check for the
+     * presence of attachments. If `attachment:*` is specified, only messages
+     * that have at least one attachment are returned.
+     * - `annotations.user_mentions.user.name`: The resource name of the mentioned
+     * user (`users/{user}`). Only supports `:` (has). For example:
+     * `annotations.user_mentions.user.name:"users/1234567890"` returns only
+     * messages that contain a mention to the specified user. Alternatively, the
+     * alias `me` can be used to filter for messages that mention the caller
+     * user, for example: `annotations.user_mentions.user.name:users/me`. You
+     * can also use the e-mail as an alias for `{user}`, for example,
+     * `users/example@gmail.com`.
+     *
+     * For advanced filtering, the following functions are also available:
+     *
+     * - `has_link()`: Returns only messages that have at least one hyperlink in
+     * the message text.
+     * - `is_unread()`: Filters out messages that have been read by the calling
+     * user.
+     *
+     * Using the `space.display_name` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.spaces.readonly`
+     * - `https://www.googleapis.com/auth/chat.spaces`
+     *
+     * Using the `is_unread()` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+     * - `https://www.googleapis.com/auth/chat.users.readstate`
+     *
+     *
+     * Across different fields, only `AND` operators are supported. A valid
+     * example is `sender.name = "users/1234567890" AND is_unread()`. The word
+     * `AND` is optional and is implied if omitted. For example, `sender.name =
+     * "users/1234567890" is_unread()` is valid and is equivalent to the previous
+     * example. An invalid example is `sender.name = "users/1234567890" OR
+     * is_unread()` because `OR` is not supported between different fields.
+     *
+     * Among the same field:
+     *
+     * - `create_time` supports only `AND`, and can only be used to represent
+     * an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
+     * create_time < "2023-01-01T00:00:00+00:00"`.
+     * - `sender.name` supports only the `OR` operator, for example:
+     * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
+     * - `space.name` supports only the `OR` operator, for example:
+     * `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
+     * - `space.display_name` supports the operators `AND` and `OR`, but not a
+     * mix of both. For example:
+     * `space.display_name:Project AND space.display_name:Tasks` returns
+     * messages that are in spaces with display names containing both `Project`
+     * and `Tasks`, whereas
+     * `space.display_name:Project OR space.display_name:Tasks` returns messages
+     * that are in spaces with display names containing either `Project` or
+     * `Tasks` or both.
+     * - `annotations.user_mentions.user.name` supports the operators `AND` and
+     * `OR`, but not a mix of both. For example:
+     * `annotations.user_mentions.user.name:"users/1234567890" AND
+     * annotations.user_mentions.user.name:"users/0987654321"` returns only
+     * messages that mentions both users, whereas
+     * `annotations.user_mentions.user.name:"users/1234567890" OR
+     * annotations.user_mentions.user.name:"users/0987654321"` returns messages
+     * that mention either user or both.
+     *
+     * Parentheses are required to disambiguate operator precedence when combining
+     * `AND` and `OR` operators in the same query. For example:
+     * `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
+     * Otherwise, parentheses are optional.
+     *
+     * The following example queries are valid:
+     *
+     * ```
+     * "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
+     *
+     * sender.name = "users/example@gmail.com"
+     *
+     * annotations.user_mentions.user.name:"users/0987654321"
+     *
+     * attachment:* AND space.name = "spaces/ABCDEFGH"
+     *
+     * tasks AND is_unread() AND sender.name = "users/1234567890"
+     *
+     * "things to do" "urgent"
+     *
+     * (sender.name = "users/1234567890")
+     * AND (create_time < "2023-05-01T00:00:00Z")
+     *
+     * tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
+     *
+     * "project one" is_unread()
+     *
+     * space.display_name:Project tasks
+     * ```
+     *
+     * The maximum query length is 1,000 characters.
+     *
+     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
+     * error.
+     * 
+ * + * string filter = 2 [(.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. A search query.
+     *
+     * The query can specify one or more search keywords, which are used to filter
+     * the results,
+     *
+     * You can also filter the results using the following message fields:
+     *
+     * - `create_time`: Accepts a timestamp in
+     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
+     * supported comparison operators are: `<` and `>=`.
+     * - `sender.name`: The resource name of the sender (`users/{user}`). Only
+     * supports `=`. You can use the e-mail as an alias for `{user}`. For
+     * example, `users/example@gmail.com`, where `example@gmail.com` is the
+     * e-mail of the Google Chat user.
+     * - `space.name`: The resource name of the space where the message is posted.
+     * (`spaces/{space}`). Only supports `=`. If this filter is not set, the
+     * search is performed across all direct messages and spaces the user has
+     * access to as a space member.
+     * - `space.display_name`: Supports the operator `:` (has) and filters spaces
+     * based on a partial match of their display name. Results are limited to
+     * the top five space matches. For example, `space.display_name:Project`
+     * searches for messages in the top five spaces that contain the word
+     * "Project" in their display names.
+     * - `attachment`: Supports the operator `:*` (has any) to check for the
+     * presence of attachments. If `attachment:*` is specified, only messages
+     * that have at least one attachment are returned.
+     * - `annotations.user_mentions.user.name`: The resource name of the mentioned
+     * user (`users/{user}`). Only supports `:` (has). For example:
+     * `annotations.user_mentions.user.name:"users/1234567890"` returns only
+     * messages that contain a mention to the specified user. Alternatively, the
+     * alias `me` can be used to filter for messages that mention the caller
+     * user, for example: `annotations.user_mentions.user.name:users/me`. You
+     * can also use the e-mail as an alias for `{user}`, for example,
+     * `users/example@gmail.com`.
+     *
+     * For advanced filtering, the following functions are also available:
+     *
+     * - `has_link()`: Returns only messages that have at least one hyperlink in
+     * the message text.
+     * - `is_unread()`: Filters out messages that have been read by the calling
+     * user.
+     *
+     * Using the `space.display_name` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.spaces.readonly`
+     * - `https://www.googleapis.com/auth/chat.spaces`
+     *
+     * Using the `is_unread()` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+     * - `https://www.googleapis.com/auth/chat.users.readstate`
+     *
+     *
+     * Across different fields, only `AND` operators are supported. A valid
+     * example is `sender.name = "users/1234567890" AND is_unread()`. The word
+     * `AND` is optional and is implied if omitted. For example, `sender.name =
+     * "users/1234567890" is_unread()` is valid and is equivalent to the previous
+     * example. An invalid example is `sender.name = "users/1234567890" OR
+     * is_unread()` because `OR` is not supported between different fields.
+     *
+     * Among the same field:
+     *
+     * - `create_time` supports only `AND`, and can only be used to represent
+     * an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
+     * create_time < "2023-01-01T00:00:00+00:00"`.
+     * - `sender.name` supports only the `OR` operator, for example:
+     * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
+     * - `space.name` supports only the `OR` operator, for example:
+     * `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
+     * - `space.display_name` supports the operators `AND` and `OR`, but not a
+     * mix of both. For example:
+     * `space.display_name:Project AND space.display_name:Tasks` returns
+     * messages that are in spaces with display names containing both `Project`
+     * and `Tasks`, whereas
+     * `space.display_name:Project OR space.display_name:Tasks` returns messages
+     * that are in spaces with display names containing either `Project` or
+     * `Tasks` or both.
+     * - `annotations.user_mentions.user.name` supports the operators `AND` and
+     * `OR`, but not a mix of both. For example:
+     * `annotations.user_mentions.user.name:"users/1234567890" AND
+     * annotations.user_mentions.user.name:"users/0987654321"` returns only
+     * messages that mentions both users, whereas
+     * `annotations.user_mentions.user.name:"users/1234567890" OR
+     * annotations.user_mentions.user.name:"users/0987654321"` returns messages
+     * that mention either user or both.
+     *
+     * Parentheses are required to disambiguate operator precedence when combining
+     * `AND` and `OR` operators in the same query. For example:
+     * `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
+     * Otherwise, parentheses are optional.
+     *
+     * The following example queries are valid:
+     *
+     * ```
+     * "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
+     *
+     * sender.name = "users/example@gmail.com"
+     *
+     * annotations.user_mentions.user.name:"users/0987654321"
+     *
+     * attachment:* AND space.name = "spaces/ABCDEFGH"
+     *
+     * tasks AND is_unread() AND sender.name = "users/1234567890"
+     *
+     * "things to do" "urgent"
+     *
+     * (sender.name = "users/1234567890")
+     * AND (create_time < "2023-05-01T00:00:00Z")
+     *
+     * tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
+     *
+     * "project one" is_unread()
+     *
+     * space.display_name:Project tasks
+     * ```
+     *
+     * The maximum query length is 1,000 characters.
+     *
+     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
+     * error.
+     * 
+ * + * string filter = 2 [(.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. A search query.
+     *
+     * The query can specify one or more search keywords, which are used to filter
+     * the results,
+     *
+     * You can also filter the results using the following message fields:
+     *
+     * - `create_time`: Accepts a timestamp in
+     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
+     * supported comparison operators are: `<` and `>=`.
+     * - `sender.name`: The resource name of the sender (`users/{user}`). Only
+     * supports `=`. You can use the e-mail as an alias for `{user}`. For
+     * example, `users/example@gmail.com`, where `example@gmail.com` is the
+     * e-mail of the Google Chat user.
+     * - `space.name`: The resource name of the space where the message is posted.
+     * (`spaces/{space}`). Only supports `=`. If this filter is not set, the
+     * search is performed across all direct messages and spaces the user has
+     * access to as a space member.
+     * - `space.display_name`: Supports the operator `:` (has) and filters spaces
+     * based on a partial match of their display name. Results are limited to
+     * the top five space matches. For example, `space.display_name:Project`
+     * searches for messages in the top five spaces that contain the word
+     * "Project" in their display names.
+     * - `attachment`: Supports the operator `:*` (has any) to check for the
+     * presence of attachments. If `attachment:*` is specified, only messages
+     * that have at least one attachment are returned.
+     * - `annotations.user_mentions.user.name`: The resource name of the mentioned
+     * user (`users/{user}`). Only supports `:` (has). For example:
+     * `annotations.user_mentions.user.name:"users/1234567890"` returns only
+     * messages that contain a mention to the specified user. Alternatively, the
+     * alias `me` can be used to filter for messages that mention the caller
+     * user, for example: `annotations.user_mentions.user.name:users/me`. You
+     * can also use the e-mail as an alias for `{user}`, for example,
+     * `users/example@gmail.com`.
+     *
+     * For advanced filtering, the following functions are also available:
+     *
+     * - `has_link()`: Returns only messages that have at least one hyperlink in
+     * the message text.
+     * - `is_unread()`: Filters out messages that have been read by the calling
+     * user.
+     *
+     * Using the `space.display_name` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.spaces.readonly`
+     * - `https://www.googleapis.com/auth/chat.spaces`
+     *
+     * Using the `is_unread()` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+     * - `https://www.googleapis.com/auth/chat.users.readstate`
+     *
+     *
+     * Across different fields, only `AND` operators are supported. A valid
+     * example is `sender.name = "users/1234567890" AND is_unread()`. The word
+     * `AND` is optional and is implied if omitted. For example, `sender.name =
+     * "users/1234567890" is_unread()` is valid and is equivalent to the previous
+     * example. An invalid example is `sender.name = "users/1234567890" OR
+     * is_unread()` because `OR` is not supported between different fields.
+     *
+     * Among the same field:
+     *
+     * - `create_time` supports only `AND`, and can only be used to represent
+     * an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
+     * create_time < "2023-01-01T00:00:00+00:00"`.
+     * - `sender.name` supports only the `OR` operator, for example:
+     * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
+     * - `space.name` supports only the `OR` operator, for example:
+     * `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
+     * - `space.display_name` supports the operators `AND` and `OR`, but not a
+     * mix of both. For example:
+     * `space.display_name:Project AND space.display_name:Tasks` returns
+     * messages that are in spaces with display names containing both `Project`
+     * and `Tasks`, whereas
+     * `space.display_name:Project OR space.display_name:Tasks` returns messages
+     * that are in spaces with display names containing either `Project` or
+     * `Tasks` or both.
+     * - `annotations.user_mentions.user.name` supports the operators `AND` and
+     * `OR`, but not a mix of both. For example:
+     * `annotations.user_mentions.user.name:"users/1234567890" AND
+     * annotations.user_mentions.user.name:"users/0987654321"` returns only
+     * messages that mentions both users, whereas
+     * `annotations.user_mentions.user.name:"users/1234567890" OR
+     * annotations.user_mentions.user.name:"users/0987654321"` returns messages
+     * that mention either user or both.
+     *
+     * Parentheses are required to disambiguate operator precedence when combining
+     * `AND` and `OR` operators in the same query. For example:
+     * `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
+     * Otherwise, parentheses are optional.
+     *
+     * The following example queries are valid:
+     *
+     * ```
+     * "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
+     *
+     * sender.name = "users/example@gmail.com"
+     *
+     * annotations.user_mentions.user.name:"users/0987654321"
+     *
+     * attachment:* AND space.name = "spaces/ABCDEFGH"
+     *
+     * tasks AND is_unread() AND sender.name = "users/1234567890"
+     *
+     * "things to do" "urgent"
+     *
+     * (sender.name = "users/1234567890")
+     * AND (create_time < "2023-05-01T00:00:00Z")
+     *
+     * tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
+     *
+     * "project one" is_unread()
+     *
+     * space.display_name:Project tasks
+     * ```
+     *
+     * The maximum query length is 1,000 characters.
+     *
+     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
+     * error.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A search query.
+     *
+     * The query can specify one or more search keywords, which are used to filter
+     * the results,
+     *
+     * You can also filter the results using the following message fields:
+     *
+     * - `create_time`: Accepts a timestamp in
+     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
+     * supported comparison operators are: `<` and `>=`.
+     * - `sender.name`: The resource name of the sender (`users/{user}`). Only
+     * supports `=`. You can use the e-mail as an alias for `{user}`. For
+     * example, `users/example@gmail.com`, where `example@gmail.com` is the
+     * e-mail of the Google Chat user.
+     * - `space.name`: The resource name of the space where the message is posted.
+     * (`spaces/{space}`). Only supports `=`. If this filter is not set, the
+     * search is performed across all direct messages and spaces the user has
+     * access to as a space member.
+     * - `space.display_name`: Supports the operator `:` (has) and filters spaces
+     * based on a partial match of their display name. Results are limited to
+     * the top five space matches. For example, `space.display_name:Project`
+     * searches for messages in the top five spaces that contain the word
+     * "Project" in their display names.
+     * - `attachment`: Supports the operator `:*` (has any) to check for the
+     * presence of attachments. If `attachment:*` is specified, only messages
+     * that have at least one attachment are returned.
+     * - `annotations.user_mentions.user.name`: The resource name of the mentioned
+     * user (`users/{user}`). Only supports `:` (has). For example:
+     * `annotations.user_mentions.user.name:"users/1234567890"` returns only
+     * messages that contain a mention to the specified user. Alternatively, the
+     * alias `me` can be used to filter for messages that mention the caller
+     * user, for example: `annotations.user_mentions.user.name:users/me`. You
+     * can also use the e-mail as an alias for `{user}`, for example,
+     * `users/example@gmail.com`.
+     *
+     * For advanced filtering, the following functions are also available:
+     *
+     * - `has_link()`: Returns only messages that have at least one hyperlink in
+     * the message text.
+     * - `is_unread()`: Filters out messages that have been read by the calling
+     * user.
+     *
+     * Using the `space.display_name` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.spaces.readonly`
+     * - `https://www.googleapis.com/auth/chat.spaces`
+     *
+     * Using the `is_unread()` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+     * - `https://www.googleapis.com/auth/chat.users.readstate`
+     *
+     *
+     * Across different fields, only `AND` operators are supported. A valid
+     * example is `sender.name = "users/1234567890" AND is_unread()`. The word
+     * `AND` is optional and is implied if omitted. For example, `sender.name =
+     * "users/1234567890" is_unread()` is valid and is equivalent to the previous
+     * example. An invalid example is `sender.name = "users/1234567890" OR
+     * is_unread()` because `OR` is not supported between different fields.
+     *
+     * Among the same field:
+     *
+     * - `create_time` supports only `AND`, and can only be used to represent
+     * an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
+     * create_time < "2023-01-01T00:00:00+00:00"`.
+     * - `sender.name` supports only the `OR` operator, for example:
+     * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
+     * - `space.name` supports only the `OR` operator, for example:
+     * `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
+     * - `space.display_name` supports the operators `AND` and `OR`, but not a
+     * mix of both. For example:
+     * `space.display_name:Project AND space.display_name:Tasks` returns
+     * messages that are in spaces with display names containing both `Project`
+     * and `Tasks`, whereas
+     * `space.display_name:Project OR space.display_name:Tasks` returns messages
+     * that are in spaces with display names containing either `Project` or
+     * `Tasks` or both.
+     * - `annotations.user_mentions.user.name` supports the operators `AND` and
+     * `OR`, but not a mix of both. For example:
+     * `annotations.user_mentions.user.name:"users/1234567890" AND
+     * annotations.user_mentions.user.name:"users/0987654321"` returns only
+     * messages that mentions both users, whereas
+     * `annotations.user_mentions.user.name:"users/1234567890" OR
+     * annotations.user_mentions.user.name:"users/0987654321"` returns messages
+     * that mention either user or both.
+     *
+     * Parentheses are required to disambiguate operator precedence when combining
+     * `AND` and `OR` operators in the same query. For example:
+     * `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
+     * Otherwise, parentheses are optional.
+     *
+     * The following example queries are valid:
+     *
+     * ```
+     * "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
+     *
+     * sender.name = "users/example@gmail.com"
+     *
+     * annotations.user_mentions.user.name:"users/0987654321"
+     *
+     * attachment:* AND space.name = "spaces/ABCDEFGH"
+     *
+     * tasks AND is_unread() AND sender.name = "users/1234567890"
+     *
+     * "things to do" "urgent"
+     *
+     * (sender.name = "users/1234567890")
+     * AND (create_time < "2023-05-01T00:00:00Z")
+     *
+     * tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
+     *
+     * "project one" is_unread()
+     *
+     * space.display_name:Project tasks
+     * ```
+     *
+     * The maximum query length is 1,000 characters.
+     *
+     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
+     * error.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A search query.
+     *
+     * The query can specify one or more search keywords, which are used to filter
+     * the results,
+     *
+     * You can also filter the results using the following message fields:
+     *
+     * - `create_time`: Accepts a timestamp in
+     * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
+     * supported comparison operators are: `<` and `>=`.
+     * - `sender.name`: The resource name of the sender (`users/{user}`). Only
+     * supports `=`. You can use the e-mail as an alias for `{user}`. For
+     * example, `users/example@gmail.com`, where `example@gmail.com` is the
+     * e-mail of the Google Chat user.
+     * - `space.name`: The resource name of the space where the message is posted.
+     * (`spaces/{space}`). Only supports `=`. If this filter is not set, the
+     * search is performed across all direct messages and spaces the user has
+     * access to as a space member.
+     * - `space.display_name`: Supports the operator `:` (has) and filters spaces
+     * based on a partial match of their display name. Results are limited to
+     * the top five space matches. For example, `space.display_name:Project`
+     * searches for messages in the top five spaces that contain the word
+     * "Project" in their display names.
+     * - `attachment`: Supports the operator `:*` (has any) to check for the
+     * presence of attachments. If `attachment:*` is specified, only messages
+     * that have at least one attachment are returned.
+     * - `annotations.user_mentions.user.name`: The resource name of the mentioned
+     * user (`users/{user}`). Only supports `:` (has). For example:
+     * `annotations.user_mentions.user.name:"users/1234567890"` returns only
+     * messages that contain a mention to the specified user. Alternatively, the
+     * alias `me` can be used to filter for messages that mention the caller
+     * user, for example: `annotations.user_mentions.user.name:users/me`. You
+     * can also use the e-mail as an alias for `{user}`, for example,
+     * `users/example@gmail.com`.
+     *
+     * For advanced filtering, the following functions are also available:
+     *
+     * - `has_link()`: Returns only messages that have at least one hyperlink in
+     * the message text.
+     * - `is_unread()`: Filters out messages that have been read by the calling
+     * user.
+     *
+     * Using the `space.display_name` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.spaces.readonly`
+     * - `https://www.googleapis.com/auth/chat.spaces`
+     *
+     * Using the `is_unread()` filter requires that the calling credentials
+     * include one of the following [authorization
+     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *
+     * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+     * - `https://www.googleapis.com/auth/chat.users.readstate`
+     *
+     *
+     * Across different fields, only `AND` operators are supported. A valid
+     * example is `sender.name = "users/1234567890" AND is_unread()`. The word
+     * `AND` is optional and is implied if omitted. For example, `sender.name =
+     * "users/1234567890" is_unread()` is valid and is equivalent to the previous
+     * example. An invalid example is `sender.name = "users/1234567890" OR
+     * is_unread()` because `OR` is not supported between different fields.
+     *
+     * Among the same field:
+     *
+     * - `create_time` supports only `AND`, and can only be used to represent
+     * an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
+     * create_time < "2023-01-01T00:00:00+00:00"`.
+     * - `sender.name` supports only the `OR` operator, for example:
+     * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
+     * - `space.name` supports only the `OR` operator, for example:
+     * `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
+     * - `space.display_name` supports the operators `AND` and `OR`, but not a
+     * mix of both. For example:
+     * `space.display_name:Project AND space.display_name:Tasks` returns
+     * messages that are in spaces with display names containing both `Project`
+     * and `Tasks`, whereas
+     * `space.display_name:Project OR space.display_name:Tasks` returns messages
+     * that are in spaces with display names containing either `Project` or
+     * `Tasks` or both.
+     * - `annotations.user_mentions.user.name` supports the operators `AND` and
+     * `OR`, but not a mix of both. For example:
+     * `annotations.user_mentions.user.name:"users/1234567890" AND
+     * annotations.user_mentions.user.name:"users/0987654321"` returns only
+     * messages that mentions both users, whereas
+     * `annotations.user_mentions.user.name:"users/1234567890" OR
+     * annotations.user_mentions.user.name:"users/0987654321"` returns messages
+     * that mention either user or both.
+     *
+     * Parentheses are required to disambiguate operator precedence when combining
+     * `AND` and `OR` operators in the same query. For example:
+     * `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
+     * Otherwise, parentheses are optional.
+     *
+     * The following example queries are valid:
+     *
+     * ```
+     * "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
+     *
+     * sender.name = "users/example@gmail.com"
+     *
+     * annotations.user_mentions.user.name:"users/0987654321"
+     *
+     * attachment:* AND space.name = "spaces/ABCDEFGH"
+     *
+     * tasks AND is_unread() AND sender.name = "users/1234567890"
+     *
+     * "things to do" "urgent"
+     *
+     * (sender.name = "users/1234567890")
+     * AND (create_time < "2023-05-01T00:00:00Z")
+     *
+     * tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
+     *
+     * "project one" is_unread()
+     *
+     * space.display_name:Project tasks
+     * ```
+     *
+     * The maximum query length is 1,000 characters.
+     *
+     * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
+     * error.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of results to return. The service may return
+     * fewer than this value.
+     *
+     * If unspecified, at most 25 are returned.
+     *
+     * The maximum value is 100. If you use a value more than 100, it's
+     * automatically changed to 100.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of results to return. The service may return
+     * fewer than this value.
+     *
+     * If unspecified, at most 25 are returned.
+     *
+     * The maximum value is 100. If you use a value more than 100, it's
+     * automatically changed to 100.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of results to return. The service may return
+     * fewer than this value.
+     *
+     * If unspecified, at most 25 are returned.
+     *
+     * The maximum value is 100. If you use a value more than 100, it's
+     * automatically changed to 100.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token, received from the previous search messages call. Provide
+     * this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the page token. Passing different values to the other parameters
+     * might lead to unexpected results.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A token, received from the previous search messages call. Provide
+     * this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the page token. Passing different values to the other parameters
+     * might lead to unexpected results.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A token, received from the previous search messages call. Provide
+     * this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the page token. Passing different values to the other parameters
+     * might lead to unexpected results.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, received from the previous search messages call. Provide
+     * this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the page token. Passing different values to the other parameters
+     * might lead to unexpected results.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, received from the previous search messages call. Provide
+     * this parameter to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided should match the call that
+     * provided the page token. Passing different values to the other parameters
+     * might lead to unexpected results.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. How the results list is ordered.
+     *
+     * Supported attributes to order by are:
+     *
+     * - `create_time`: Sorts the results by the time of the message creation.
+     * Default value.
+     * - `relevance`: Sorts the results by relevance.
+     * [Developer Preview](https://developers.google.com/workspace/preview).
+     *
+     * The default ordering is `create_time desc`. Only a single order per query
+     * (`create_time` or `relevance`) is supported. Only descending order (`desc`)
+     * is supported, and it must be specified after the order attribute.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. How the results list is ordered.
+     *
+     * Supported attributes to order by are:
+     *
+     * - `create_time`: Sorts the results by the time of the message creation.
+     * Default value.
+     * - `relevance`: Sorts the results by relevance.
+     * [Developer Preview](https://developers.google.com/workspace/preview).
+     *
+     * The default ordering is `create_time desc`. Only a single order per query
+     * (`create_time` or `relevance`) is supported. Only descending order (`desc`)
+     * is supported, and it must be specified after the order attribute.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. How the results list is ordered.
+     *
+     * Supported attributes to order by are:
+     *
+     * - `create_time`: Sorts the results by the time of the message creation.
+     * Default value.
+     * - `relevance`: Sorts the results by relevance.
+     * [Developer Preview](https://developers.google.com/workspace/preview).
+     *
+     * The default ordering is `create_time desc`. Only a single order per query
+     * (`create_time` or `relevance`) is supported. Only descending order (`desc`)
+     * is supported, and it must be specified after the order attribute.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results list is ordered.
+     *
+     * Supported attributes to order by are:
+     *
+     * - `create_time`: Sorts the results by the time of the message creation.
+     * Default value.
+     * - `relevance`: Sorts the results by relevance.
+     * [Developer Preview](https://developers.google.com/workspace/preview).
+     *
+     * The default ordering is `create_time desc`. Only a single order per query
+     * (`create_time` or `relevance`) is supported. Only descending order (`desc`)
+     * is supported, and it must be specified after the order attribute.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. How the results list is ordered.
+     *
+     * Supported attributes to order by are:
+     *
+     * - `create_time`: Sorts the results by the time of the message creation.
+     * Default value.
+     * - `relevance`: Sorts the results by relevance.
+     * [Developer Preview](https://developers.google.com/workspace/preview).
+     *
+     * The default ordering is `create_time desc`. Only a single order per query
+     * (`create_time` or `relevance`) is supported. Only descending order (`desc`)
+     * is supported, and it must be specified after the order attribute.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int view_ = 0; + + /** + * + * + *
+     * Optional. Specifies what kind of search results view to return. The default
+     * is `SEARCH_MESSAGES_VIEW_BASIC`.
+     * 
+ * + * + * .google.chat.v1.SearchMessagesRequest.SearchMessagesView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
+     * Optional. Specifies what kind of search results view to return. The default
+     * is `SEARCH_MESSAGES_VIEW_BASIC`.
+     * 
+ * + * + * .google.chat.v1.SearchMessagesRequest.SearchMessagesView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies what kind of search results view to return. The default
+     * is `SEARCH_MESSAGES_VIEW_BASIC`.
+     * 
+ * + * + * .google.chat.v1.SearchMessagesRequest.SearchMessagesView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.chat.v1.SearchMessagesRequest.SearchMessagesView getView() { + com.google.chat.v1.SearchMessagesRequest.SearchMessagesView result = + com.google.chat.v1.SearchMessagesRequest.SearchMessagesView.forNumber(view_); + return result == null + ? com.google.chat.v1.SearchMessagesRequest.SearchMessagesView.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Specifies what kind of search results view to return. The default
+     * is `SEARCH_MESSAGES_VIEW_BASIC`.
+     * 
+ * + * + * .google.chat.v1.SearchMessagesRequest.SearchMessagesView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.chat.v1.SearchMessagesRequest.SearchMessagesView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies what kind of search results view to return. The default
+     * is `SEARCH_MESSAGES_VIEW_BASIC`.
+     * 
+ * + * + * .google.chat.v1.SearchMessagesRequest.SearchMessagesView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000020); + view_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.SearchMessagesRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.SearchMessagesRequest) + private static final com.google.chat.v1.SearchMessagesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.SearchMessagesRequest(); + } + + public static com.google.chat.v1.SearchMessagesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchMessagesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.SearchMessagesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java new file mode 100644 index 000000000000..6ccfab3902f0 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesRequestOrBuilder.java @@ -0,0 +1,479 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface SearchMessagesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.SearchMessagesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the space to search within.
+   *
+   * To search across all spaces the user has access to, set this field to
+   * `spaces/-`. Using any other value for `parent` results in an
+   * `INVALID_ARGUMENT` error.
+   *
+   * To limit the search to one or more spaces, use `space.name` or
+   * `space.display_name` in the `filter`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource name of the space to search within.
+   *
+   * To search across all spaces the user has access to, set this field to
+   * `spaces/-`. Using any other value for `parent` results in an
+   * `INVALID_ARGUMENT` error.
+   *
+   * To limit the search to one or more spaces, use `space.name` or
+   * `space.display_name` in the `filter`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. A search query.
+   *
+   * The query can specify one or more search keywords, which are used to filter
+   * the results,
+   *
+   * You can also filter the results using the following message fields:
+   *
+   * - `create_time`: Accepts a timestamp in
+   * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
+   * supported comparison operators are: `<` and `>=`.
+   * - `sender.name`: The resource name of the sender (`users/{user}`). Only
+   * supports `=`. You can use the e-mail as an alias for `{user}`. For
+   * example, `users/example@gmail.com`, where `example@gmail.com` is the
+   * e-mail of the Google Chat user.
+   * - `space.name`: The resource name of the space where the message is posted.
+   * (`spaces/{space}`). Only supports `=`. If this filter is not set, the
+   * search is performed across all direct messages and spaces the user has
+   * access to as a space member.
+   * - `space.display_name`: Supports the operator `:` (has) and filters spaces
+   * based on a partial match of their display name. Results are limited to
+   * the top five space matches. For example, `space.display_name:Project`
+   * searches for messages in the top five spaces that contain the word
+   * "Project" in their display names.
+   * - `attachment`: Supports the operator `:*` (has any) to check for the
+   * presence of attachments. If `attachment:*` is specified, only messages
+   * that have at least one attachment are returned.
+   * - `annotations.user_mentions.user.name`: The resource name of the mentioned
+   * user (`users/{user}`). Only supports `:` (has). For example:
+   * `annotations.user_mentions.user.name:"users/1234567890"` returns only
+   * messages that contain a mention to the specified user. Alternatively, the
+   * alias `me` can be used to filter for messages that mention the caller
+   * user, for example: `annotations.user_mentions.user.name:users/me`. You
+   * can also use the e-mail as an alias for `{user}`, for example,
+   * `users/example@gmail.com`.
+   *
+   * For advanced filtering, the following functions are also available:
+   *
+   * - `has_link()`: Returns only messages that have at least one hyperlink in
+   * the message text.
+   * - `is_unread()`: Filters out messages that have been read by the calling
+   * user.
+   *
+   * Using the `space.display_name` filter requires that the calling credentials
+   * include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.spaces.readonly`
+   * - `https://www.googleapis.com/auth/chat.spaces`
+   *
+   * Using the `is_unread()` filter requires that the calling credentials
+   * include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+   * - `https://www.googleapis.com/auth/chat.users.readstate`
+   *
+   *
+   * Across different fields, only `AND` operators are supported. A valid
+   * example is `sender.name = "users/1234567890" AND is_unread()`. The word
+   * `AND` is optional and is implied if omitted. For example, `sender.name =
+   * "users/1234567890" is_unread()` is valid and is equivalent to the previous
+   * example. An invalid example is `sender.name = "users/1234567890" OR
+   * is_unread()` because `OR` is not supported between different fields.
+   *
+   * Among the same field:
+   *
+   * - `create_time` supports only `AND`, and can only be used to represent
+   * an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
+   * create_time < "2023-01-01T00:00:00+00:00"`.
+   * - `sender.name` supports only the `OR` operator, for example:
+   * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
+   * - `space.name` supports only the `OR` operator, for example:
+   * `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
+   * - `space.display_name` supports the operators `AND` and `OR`, but not a
+   * mix of both. For example:
+   * `space.display_name:Project AND space.display_name:Tasks` returns
+   * messages that are in spaces with display names containing both `Project`
+   * and `Tasks`, whereas
+   * `space.display_name:Project OR space.display_name:Tasks` returns messages
+   * that are in spaces with display names containing either `Project` or
+   * `Tasks` or both.
+   * - `annotations.user_mentions.user.name` supports the operators `AND` and
+   * `OR`, but not a mix of both. For example:
+   * `annotations.user_mentions.user.name:"users/1234567890" AND
+   * annotations.user_mentions.user.name:"users/0987654321"` returns only
+   * messages that mentions both users, whereas
+   * `annotations.user_mentions.user.name:"users/1234567890" OR
+   * annotations.user_mentions.user.name:"users/0987654321"` returns messages
+   * that mention either user or both.
+   *
+   * Parentheses are required to disambiguate operator precedence when combining
+   * `AND` and `OR` operators in the same query. For example:
+   * `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
+   * Otherwise, parentheses are optional.
+   *
+   * The following example queries are valid:
+   *
+   * ```
+   * "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
+   *
+   * sender.name = "users/example@gmail.com"
+   *
+   * annotations.user_mentions.user.name:"users/0987654321"
+   *
+   * attachment:* AND space.name = "spaces/ABCDEFGH"
+   *
+   * tasks AND is_unread() AND sender.name = "users/1234567890"
+   *
+   * "things to do" "urgent"
+   *
+   * (sender.name = "users/1234567890")
+   * AND (create_time < "2023-05-01T00:00:00Z")
+   *
+   * tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
+   *
+   * "project one" is_unread()
+   *
+   * space.display_name:Project tasks
+   * ```
+   *
+   * The maximum query length is 1,000 characters.
+   *
+   * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
+   * error.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Required. A search query.
+   *
+   * The query can specify one or more search keywords, which are used to filter
+   * the results,
+   *
+   * You can also filter the results using the following message fields:
+   *
+   * - `create_time`: Accepts a timestamp in
+   * [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
+   * supported comparison operators are: `<` and `>=`.
+   * - `sender.name`: The resource name of the sender (`users/{user}`). Only
+   * supports `=`. You can use the e-mail as an alias for `{user}`. For
+   * example, `users/example@gmail.com`, where `example@gmail.com` is the
+   * e-mail of the Google Chat user.
+   * - `space.name`: The resource name of the space where the message is posted.
+   * (`spaces/{space}`). Only supports `=`. If this filter is not set, the
+   * search is performed across all direct messages and spaces the user has
+   * access to as a space member.
+   * - `space.display_name`: Supports the operator `:` (has) and filters spaces
+   * based on a partial match of their display name. Results are limited to
+   * the top five space matches. For example, `space.display_name:Project`
+   * searches for messages in the top five spaces that contain the word
+   * "Project" in their display names.
+   * - `attachment`: Supports the operator `:*` (has any) to check for the
+   * presence of attachments. If `attachment:*` is specified, only messages
+   * that have at least one attachment are returned.
+   * - `annotations.user_mentions.user.name`: The resource name of the mentioned
+   * user (`users/{user}`). Only supports `:` (has). For example:
+   * `annotations.user_mentions.user.name:"users/1234567890"` returns only
+   * messages that contain a mention to the specified user. Alternatively, the
+   * alias `me` can be used to filter for messages that mention the caller
+   * user, for example: `annotations.user_mentions.user.name:users/me`. You
+   * can also use the e-mail as an alias for `{user}`, for example,
+   * `users/example@gmail.com`.
+   *
+   * For advanced filtering, the following functions are also available:
+   *
+   * - `has_link()`: Returns only messages that have at least one hyperlink in
+   * the message text.
+   * - `is_unread()`: Filters out messages that have been read by the calling
+   * user.
+   *
+   * Using the `space.display_name` filter requires that the calling credentials
+   * include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.spaces.readonly`
+   * - `https://www.googleapis.com/auth/chat.spaces`
+   *
+   * Using the `is_unread()` filter requires that the calling credentials
+   * include one of the following [authorization
+   * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+   *
+   * - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
+   * - `https://www.googleapis.com/auth/chat.users.readstate`
+   *
+   *
+   * Across different fields, only `AND` operators are supported. A valid
+   * example is `sender.name = "users/1234567890" AND is_unread()`. The word
+   * `AND` is optional and is implied if omitted. For example, `sender.name =
+   * "users/1234567890" is_unread()` is valid and is equivalent to the previous
+   * example. An invalid example is `sender.name = "users/1234567890" OR
+   * is_unread()` because `OR` is not supported between different fields.
+   *
+   * Among the same field:
+   *
+   * - `create_time` supports only `AND`, and can only be used to represent
+   * an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
+   * create_time < "2023-01-01T00:00:00+00:00"`.
+   * - `sender.name` supports only the `OR` operator, for example:
+   * `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
+   * - `space.name` supports only the `OR` operator, for example:
+   * `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
+   * - `space.display_name` supports the operators `AND` and `OR`, but not a
+   * mix of both. For example:
+   * `space.display_name:Project AND space.display_name:Tasks` returns
+   * messages that are in spaces with display names containing both `Project`
+   * and `Tasks`, whereas
+   * `space.display_name:Project OR space.display_name:Tasks` returns messages
+   * that are in spaces with display names containing either `Project` or
+   * `Tasks` or both.
+   * - `annotations.user_mentions.user.name` supports the operators `AND` and
+   * `OR`, but not a mix of both. For example:
+   * `annotations.user_mentions.user.name:"users/1234567890" AND
+   * annotations.user_mentions.user.name:"users/0987654321"` returns only
+   * messages that mentions both users, whereas
+   * `annotations.user_mentions.user.name:"users/1234567890" OR
+   * annotations.user_mentions.user.name:"users/0987654321"` returns messages
+   * that mention either user or both.
+   *
+   * Parentheses are required to disambiguate operator precedence when combining
+   * `AND` and `OR` operators in the same query. For example:
+   * `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
+   * Otherwise, parentheses are optional.
+   *
+   * The following example queries are valid:
+   *
+   * ```
+   * "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
+   *
+   * sender.name = "users/example@gmail.com"
+   *
+   * annotations.user_mentions.user.name:"users/0987654321"
+   *
+   * attachment:* AND space.name = "spaces/ABCDEFGH"
+   *
+   * tasks AND is_unread() AND sender.name = "users/1234567890"
+   *
+   * "things to do" "urgent"
+   *
+   * (sender.name = "users/1234567890")
+   * AND (create_time < "2023-05-01T00:00:00Z")
+   *
+   * tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
+   *
+   * "project one" is_unread()
+   *
+   * space.display_name:Project tasks
+   * ```
+   *
+   * The maximum query length is 1,000 characters.
+   *
+   * Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
+   * error.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. The maximum number of results to return. The service may return
+   * fewer than this value.
+   *
+   * If unspecified, at most 25 are returned.
+   *
+   * The maximum value is 100. If you use a value more than 100, it's
+   * automatically changed to 100.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token, received from the previous search messages call. Provide
+   * this parameter to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided should match the call that
+   * provided the page token. Passing different values to the other parameters
+   * might lead to unexpected results.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token, received from the previous search messages call. Provide
+   * this parameter to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided should match the call that
+   * provided the page token. Passing different values to the other parameters
+   * might lead to unexpected results.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. How the results list is ordered.
+   *
+   * Supported attributes to order by are:
+   *
+   * - `create_time`: Sorts the results by the time of the message creation.
+   * Default value.
+   * - `relevance`: Sorts the results by relevance.
+   * [Developer Preview](https://developers.google.com/workspace/preview).
+   *
+   * The default ordering is `create_time desc`. Only a single order per query
+   * (`create_time` or `relevance`) is supported. Only descending order (`desc`)
+   * is supported, and it must be specified after the order attribute.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. How the results list is ordered.
+   *
+   * Supported attributes to order by are:
+   *
+   * - `create_time`: Sorts the results by the time of the message creation.
+   * Default value.
+   * - `relevance`: Sorts the results by relevance.
+   * [Developer Preview](https://developers.google.com/workspace/preview).
+   *
+   * The default ordering is `create_time desc`. Only a single order per query
+   * (`create_time` or `relevance`) is supported. Only descending order (`desc`)
+   * is supported, and it must be specified after the order attribute.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Specifies what kind of search results view to return. The default
+   * is `SEARCH_MESSAGES_VIEW_BASIC`.
+   * 
+ * + * + * .google.chat.v1.SearchMessagesRequest.SearchMessagesView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
+   * Optional. Specifies what kind of search results view to return. The default
+   * is `SEARCH_MESSAGES_VIEW_BASIC`.
+   * 
+ * + * + * .google.chat.v1.SearchMessagesRequest.SearchMessagesView view = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.chat.v1.SearchMessagesRequest.SearchMessagesView getView(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesResponse.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesResponse.java new file mode 100644 index 000000000000..cec5f78914d7 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesResponse.java @@ -0,0 +1,1115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * Response message for searching messages.
+ * 
+ * + * Protobuf type {@code google.chat.v1.SearchMessagesResponse} + */ +@com.google.protobuf.Generated +public final class SearchMessagesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.SearchMessagesResponse) + SearchMessagesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchMessagesResponse"); + } + + // Use SearchMessagesResponse.newBuilder() to construct. + private SearchMessagesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchMessagesResponse() { + results_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SearchMessagesResponse.class, + com.google.chat.v1.SearchMessagesResponse.Builder.class); + } + + public static final int RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List results_; + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + @java.lang.Override + public java.util.List getResultsList() { + return results_; + } + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + @java.lang.Override + public java.util.List + getResultsOrBuilderList() { + return results_; + } + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + @java.lang.Override + public int getResultsCount() { + return results_.size(); + } + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + @java.lang.Override + public com.google.chat.v1.SearchMessageResult getResults(int index) { + return results_.get(index); + } + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + @java.lang.Override + public com.google.chat.v1.SearchMessageResultOrBuilder getResultsOrBuilder(int index) { + return results_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token that can be used to retrieve the next page. If this field is empty,
+   * 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 that can be used to retrieve the next page. If this field is empty,
+   * 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 < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.SearchMessagesResponse)) { + return super.equals(obj); + } + com.google.chat.v1.SearchMessagesResponse other = + (com.google.chat.v1.SearchMessagesResponse) obj; + + if (!getResultsList().equals(other.getResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SearchMessagesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.SearchMessagesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.SearchMessagesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for searching messages.
+   * 
+ * + * Protobuf type {@code google.chat.v1.SearchMessagesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.SearchMessagesResponse) + com.google.chat.v1.SearchMessagesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.SearchMessagesResponse.class, + com.google.chat.v1.SearchMessagesResponse.Builder.class); + } + + // Construct using com.google.chat.v1.SearchMessagesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + } else { + results_ = null; + resultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_SearchMessagesResponse_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.SearchMessagesResponse getDefaultInstanceForType() { + return com.google.chat.v1.SearchMessagesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.SearchMessagesResponse build() { + com.google.chat.v1.SearchMessagesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.SearchMessagesResponse buildPartial() { + com.google.chat.v1.SearchMessagesResponse result = + new com.google.chat.v1.SearchMessagesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.SearchMessagesResponse result) { + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.SearchMessagesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.SearchMessagesResponse) { + return mergeFrom((com.google.chat.v1.SearchMessagesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.SearchMessagesResponse other) { + if (other == com.google.chat.v1.SearchMessagesResponse.getDefaultInstance()) return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetResultsFieldBuilder() + : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.chat.v1.SearchMessageResult m = + input.readMessage( + com.google.chat.v1.SearchMessageResult.parser(), extensionRegistry); + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(m); + } else { + resultsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List results_ = + java.util.Collections.emptyList(); + + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + results_ = new java.util.ArrayList(results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.SearchMessageResult, + com.google.chat.v1.SearchMessageResult.Builder, + com.google.chat.v1.SearchMessageResultOrBuilder> + resultsBuilder_; + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public com.google.chat.v1.SearchMessageResult getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public Builder setResults(int index, com.google.chat.v1.SearchMessageResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public Builder setResults( + int index, com.google.chat.v1.SearchMessageResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public Builder addResults(com.google.chat.v1.SearchMessageResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public Builder addResults(int index, com.google.chat.v1.SearchMessageResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public Builder addResults(com.google.chat.v1.SearchMessageResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public Builder addResults( + int index, com.google.chat.v1.SearchMessageResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public Builder addAllResults( + java.lang.Iterable values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public com.google.chat.v1.SearchMessageResult.Builder getResultsBuilder(int index) { + return internalGetResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public com.google.chat.v1.SearchMessageResultOrBuilder getResultsOrBuilder(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public com.google.chat.v1.SearchMessageResult.Builder addResultsBuilder() { + return internalGetResultsFieldBuilder() + .addBuilder(com.google.chat.v1.SearchMessageResult.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public com.google.chat.v1.SearchMessageResult.Builder addResultsBuilder(int index) { + return internalGetResultsFieldBuilder() + .addBuilder(index, com.google.chat.v1.SearchMessageResult.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of search results that matched the query.
+     * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + public java.util.List getResultsBuilderList() { + return internalGetResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.SearchMessageResult, + com.google.chat.v1.SearchMessageResult.Builder, + com.google.chat.v1.SearchMessageResultOrBuilder> + internalGetResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.SearchMessageResult, + com.google.chat.v1.SearchMessageResult.Builder, + com.google.chat.v1.SearchMessageResultOrBuilder>( + results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token that can be used to retrieve the next page. If this field is empty,
+     * 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 that can be used to retrieve the next page. If this field is empty,
+     * 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 that can be used to retrieve the next page. If this field is empty,
+     * there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be used to retrieve the next page. If this field is empty,
+     * there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token that can be used to retrieve the next page. If this field is empty,
+     * there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.SearchMessagesResponse) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.SearchMessagesResponse) + private static final com.google.chat.v1.SearchMessagesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.SearchMessagesResponse(); + } + + public static com.google.chat.v1.SearchMessagesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchMessagesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.SearchMessagesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesResponseOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesResponseOrBuilder.java new file mode 100644 index 000000000000..c068d1f4586c --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SearchMessagesResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface SearchMessagesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.SearchMessagesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + java.util.List getResultsList(); + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + com.google.chat.v1.SearchMessageResult getResults(int index); + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + int getResultsCount(); + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + java.util.List + getResultsOrBuilderList(); + + /** + * + * + *
+   * The list of search results that matched the query.
+   * 
+ * + * repeated .google.chat.v1.SearchMessageResult results = 1; + */ + com.google.chat.v1.SearchMessageResultOrBuilder getResultsOrBuilder(int index); + + /** + * + * + *
+   * A token that can be used to retrieve the next page. If this field is empty,
+   * there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token that can be used to retrieve the next page. If this field is empty,
+   * there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java index 09209593adc9..675bf2368d67 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/Space.java @@ -467,9 +467,9 @@ public enum SpaceThreadingState implements com.google.protobuf.ProtocolMessageEn * * *
-     * Named spaces that support message threads. When users respond to a
-     * message, they can reply in-thread, which keeps their response in the
-     * context of the original message.
+     * Spaces that support message threads. When users respond to a message,
+     * they can reply in-thread, which keeps their response in the context of
+     * the original message.
      * 
* * THREADED_MESSAGES = 2; @@ -490,8 +490,11 @@ public enum SpaceThreadingState implements com.google.protobuf.ProtocolMessageEn * * *
-     * Direct messages (DMs) between two people and group conversations between
-     * 3 or more people.
+     * Spaces that don't support message threading. This space threading state
+     * is only used for special cases including:
+     *
+     * * Continuous meeting chat where threading is intentionally turned off.
+     * * Legacy group conversations that were created prior to 2022.
      * 
* * UNTHREADED_MESSAGES = 4; @@ -525,9 +528,9 @@ public enum SpaceThreadingState implements com.google.protobuf.ProtocolMessageEn * * *
-     * Named spaces that support message threads. When users respond to a
-     * message, they can reply in-thread, which keeps their response in the
-     * context of the original message.
+     * Spaces that support message threads. When users respond to a message,
+     * they can reply in-thread, which keeps their response in the context of
+     * the original message.
      * 
* * THREADED_MESSAGES = 2; @@ -550,8 +553,11 @@ public enum SpaceThreadingState implements com.google.protobuf.ProtocolMessageEn * * *
-     * Direct messages (DMs) between two people and group conversations between
-     * 3 or more people.
+     * Spaces that don't support message threading. This space threading state
+     * is only used for special cases including:
+     *
+     * * Continuous meeting chat where threading is intentionally turned off.
+     * * Legacy group conversations that were created prior to 2022.
      * 
* * UNTHREADED_MESSAGES = 4; @@ -11132,7 +11138,7 @@ public com.google.protobuf.ByteString getNameBytes() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=302 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=305 * @return The enum numeric value on the wire for type. */ @java.lang.Override @@ -11153,7 +11159,7 @@ public int getTypeValue() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=302 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=305 * @return The type. */ @java.lang.Override @@ -11239,7 +11245,7 @@ public boolean getSingleUserBotDm() { * * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=314 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=317 * @return The threaded. */ @java.lang.Override @@ -13329,7 +13335,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=302 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=305 * @return The enum numeric value on the wire for type. */ @java.lang.Override @@ -13350,7 +13356,7 @@ public int getTypeValue() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=302 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=305 * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -13374,7 +13380,7 @@ public Builder setTypeValue(int value) { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=302 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=305 * @return The type. */ @java.lang.Override @@ -13396,7 +13402,7 @@ public com.google.chat.v1.Space.Type getType() { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=302 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=305 * @param value The type to set. * @return This builder for chaining. */ @@ -13423,7 +13429,7 @@ public Builder setType(com.google.chat.v1.Space.Type value) { * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=302 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=305 * @return This builder for chaining. */ @java.lang.Deprecated @@ -13616,7 +13622,7 @@ public Builder clearSingleUserBotDm() { * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=314 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=317 * @return The threaded. */ @java.lang.Override @@ -13636,7 +13642,7 @@ public boolean getThreaded() { * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=314 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=317 * @param value The threaded to set. * @return This builder for chaining. */ @@ -13660,7 +13666,7 @@ public Builder setThreaded(boolean value) { * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=314 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=317 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java index 1618944c9001..e54aa0bf1ba8 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceOrBuilder.java @@ -82,7 +82,7 @@ public interface SpaceOrBuilder * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=302 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=305 * @return The enum numeric value on the wire for type. */ @java.lang.Deprecated @@ -100,7 +100,7 @@ public interface SpaceOrBuilder * .google.chat.v1.Space.Type type = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=302 + * @deprecated google.chat.v1.Space.type is deprecated. See google/chat/v1/space.proto;l=305 * @return The type. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface SpaceOrBuilder * * bool threaded = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * - * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=314 + * @deprecated google.chat.v1.Space.threaded is deprecated. See google/chat/v1/space.proto;l=317 * @return The threaded. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto index fcf714fb95aa..02fc5e445163 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto @@ -342,6 +342,41 @@ service ChatService { option (google.api.method_signature) = "name"; } + // Searches for messages in Google Chat that the calling user has access to. + // Returns a list of messages matching the search criteria. + // + // To search across all spaces the user has access to, set `parent` to + // `spaces/-`. Using any other value for `parent` results in an + // `INVALID_ARGUMENT` error. The returned messages have their `name` field + // populated with the full resource name, which includes the specific `space` + // in which the message resides. + // + // This API doesn't return all message types. The types of messages listed + // below aren't included in the response. Use + // [ListMessages][google.chat.v1.ChatService.ListMessages] to list all + // messages. + // + // - Private Messages that are visible to the authenticated user. + // - Messages posted by Chat apps in spaces or group chats. + // - Messages in a Chat app DM. + // - Messages from blocked users. + // - Messages in spaces that the caller has muted. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with one of the following [authorization + // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.messages.readonly` + // - `https://www.googleapis.com/auth/chat.messages` + rpc SearchMessages(SearchMessagesRequest) returns (SearchMessagesResponse) { + option (google.api.http) = { + post: "/v1/{parent=spaces/*}/messages:search" + body: "*" + }; + option (google.api.method_signature) = "parent,filter"; + } + // Gets the metadata of a message attachment. The attachment data is fetched // using the [media // API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download). diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto index ed78f5e50c99..22d53f09d3d6 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto @@ -28,6 +28,7 @@ import "google/chat/v1/matched_url.proto"; import "google/chat/v1/reaction.proto"; import "google/chat/v1/slash_command.proto"; import "google/chat/v1/space.proto"; +import "google/chat/v1/space_notification_setting.proto"; import "google/chat/v1/user.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -112,8 +113,8 @@ message Message { // // * [Markup // syntax](https://developers.google.com/workspace/chat/format-messages) - // for bold, italic, strikethrough, monospace, monospace block, and bulleted - // list. + // for bold, italic, strikethrough, monospace, monospace block, bulleted + // list, and block quote. // // * [User // mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) @@ -191,8 +192,8 @@ message Message { // Optional. User-uploaded attachment. repeated Attachment attachment = 18 [(google.api.field_behavior) = OPTIONAL]; - // Output only. A URL in `spaces.messages.text` that matches a link preview - // pattern. For more information, see [Preview + // Output only. A URL in the Chat message `text` field that matches a link + // preview pattern. For more information, see [Preview // links](https://developers.google.com/workspace/chat/preview-links). MatchedUrl matched_url = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -677,9 +678,9 @@ message CreateMessageNotificationOptions { // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). NOTIFICATION_TYPE_FORCE_NOTIFY = 2; - // Silence the notification as if the recipients have [Chat Do Not - // Disturb](https://support.google.com/chat/answer/9093489) enabled or - // have muted the space. + // Do not notify recipients, and do not mark the message as unread. + // This behaves similarly to the user muting the conversation or enabling + // [Chat Do Not Disturb](https://support.google.com/chat/answer/9093489). // // Requires [app authentication] // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). @@ -830,3 +831,232 @@ message CardWithId { // A card. Maximum size is 32 KB. google.apps.card.v1.Card card = 2; } + +// Request message for searching messages. +message SearchMessagesRequest { + // The kinds of view that are supported for partial search results. + enum SearchMessagesView { + // The default / unset value. + // The API will default to the BASIC view. + SEARCH_MESSAGES_VIEW_UNSPECIFIED = 0; + + // Includes only the matched messages in the results, but no additional + // metadata. This is the default value. + SEARCH_MESSAGES_VIEW_BASIC = 1; + + // Includes everything in the results: the matched messages and additional + // metadata. + SEARCH_MESSAGES_VIEW_FULL = 2; + } + + // Required. The resource name of the space to search within. + // + // To search across all spaces the user has access to, set this field to + // `spaces/-`. Using any other value for `parent` results in an + // `INVALID_ARGUMENT` error. + // + // To limit the search to one or more spaces, use `space.name` or + // `space.display_name` in the `filter`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "chat.googleapis.com/Space" } + ]; + + // Required. A search query. + // + // The query can specify one or more search keywords, which are used to filter + // the results, + // + // You can also filter the results using the following message fields: + // + // - `create_time`: Accepts a timestamp in + // [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the + // supported comparison operators are: `<` and `>=`. + // - `sender.name`: The resource name of the sender (`users/{user}`). Only + // supports `=`. You can use the e-mail as an alias for `{user}`. For + // example, `users/example@gmail.com`, where `example@gmail.com` is the + // e-mail of the Google Chat user. + // - `space.name`: The resource name of the space where the message is posted. + // (`spaces/{space}`). Only supports `=`. If this filter is not set, the + // search is performed across all direct messages and spaces the user has + // access to as a space member. + // - `space.display_name`: Supports the operator `:` (has) and filters spaces + // based on a partial match of their display name. Results are limited to + // the top five space matches. For example, `space.display_name:Project` + // searches for messages in the top five spaces that contain the word + // "Project" in their display names. + // - `attachment`: Supports the operator `:*` (has any) to check for the + // presence of attachments. If `attachment:*` is specified, only messages + // that have at least one attachment are returned. + // - `annotations.user_mentions.user.name`: The resource name of the mentioned + // user (`users/{user}`). Only supports `:` (has). For example: + // `annotations.user_mentions.user.name:"users/1234567890"` returns only + // messages that contain a mention to the specified user. Alternatively, the + // alias `me` can be used to filter for messages that mention the caller + // user, for example: `annotations.user_mentions.user.name:users/me`. You + // can also use the e-mail as an alias for `{user}`, for example, + // `users/example@gmail.com`. + // + // For advanced filtering, the following functions are also available: + // + // - `has_link()`: Returns only messages that have at least one hyperlink in + // the message text. + // - `is_unread()`: Filters out messages that have been read by the calling + // user. + // + // Using the `space.display_name` filter requires that the calling credentials + // include one of the following [authorization + // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.spaces.readonly` + // - `https://www.googleapis.com/auth/chat.spaces` + // + // Using the `is_unread()` filter requires that the calling credentials + // include one of the following [authorization + // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.readstate.readonly` + // - `https://www.googleapis.com/auth/chat.users.readstate` + // + // + // Across different fields, only `AND` operators are supported. A valid + // example is `sender.name = "users/1234567890" AND is_unread()`. The word + // `AND` is optional and is implied if omitted. For example, `sender.name = + // "users/1234567890" is_unread()` is valid and is equivalent to the previous + // example. An invalid example is `sender.name = "users/1234567890" OR + // is_unread()` because `OR` is not supported between different fields. + // + // Among the same field: + // + // - `create_time` supports only `AND`, and can only be used to represent + // an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND + // create_time < "2023-01-01T00:00:00+00:00"`. + // - `sender.name` supports only the `OR` operator, for example: + // `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`. + // - `space.name` supports only the `OR` operator, for example: + // `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`. + // - `space.display_name` supports the operators `AND` and `OR`, but not a + // mix of both. For example: + // `space.display_name:Project AND space.display_name:Tasks` returns + // messages that are in spaces with display names containing both `Project` + // and `Tasks`, whereas + // `space.display_name:Project OR space.display_name:Tasks` returns messages + // that are in spaces with display names containing either `Project` or + // `Tasks` or both. + // - `annotations.user_mentions.user.name` supports the operators `AND` and + // `OR`, but not a mix of both. For example: + // `annotations.user_mentions.user.name:"users/1234567890" AND + // annotations.user_mentions.user.name:"users/0987654321"` returns only + // messages that mentions both users, whereas + // `annotations.user_mentions.user.name:"users/1234567890" OR + // annotations.user_mentions.user.name:"users/0987654321"` returns messages + // that mention either user or both. + // + // Parentheses are required to disambiguate operator precedence when combining + // `AND` and `OR` operators in the same query. For example: + // `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`. + // Otherwise, parentheses are optional. + // + // The following example queries are valid: + // + // ``` + // "Pending reports" AND create_time >= "2023-01-01T00:00:00Z" + // + // sender.name = "users/example@gmail.com" + // + // annotations.user_mentions.user.name:"users/0987654321" + // + // attachment:* AND space.name = "spaces/ABCDEFGH" + // + // tasks AND is_unread() AND sender.name = "users/1234567890" + // + // "things to do" "urgent" + // + // (sender.name = "users/1234567890") + // AND (create_time < "2023-05-01T00:00:00Z") + // + // tasks AND space.name = "spaces/ABCDEFGH" AND has_link() + // + // "project one" is_unread() + // + // space.display_name:Project tasks + // ``` + // + // The maximum query length is 1,000 characters. + // + // Invalid queries are rejected by the server with an `INVALID_ARGUMENT` + // error. + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The maximum number of results to return. The service may return + // fewer than this value. + // + // If unspecified, at most 25 are returned. + // + // The maximum value is 100. If you use a value more than 100, it's + // automatically changed to 100. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token, received from the previous search messages call. Provide + // this parameter to retrieve the subsequent page. + // + // When paginating, all other parameters provided should match the call that + // provided the page token. Passing different values to the other parameters + // might lead to unexpected results. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the results list is ordered. + // + // Supported attributes to order by are: + // + // - `create_time`: Sorts the results by the time of the message creation. + // Default value. + // - `relevance`: Sorts the results by relevance. + // [Developer Preview](https://developers.google.com/workspace/preview). + // + // The default ordering is `create_time desc`. Only a single order per query + // (`create_time` or `relevance`) is supported. Only descending order (`desc`) + // is supported, and it must be specified after the order attribute. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies what kind of search results view to return. The default + // is `SEARCH_MESSAGES_VIEW_BASIC`. + SearchMessagesView view = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for searching messages. +message SearchMessagesResponse { + // The list of search results that matched the query. + repeated SearchMessageResult results = 1; + + // A token that can be used to retrieve the next page. If this field is empty, + // there are no subsequent pages. + string next_page_token = 2; +} + +// A single result item from a message search. +message SearchMessageResult { + // The matched message. + Message message = 1; + + // Indicates if the matched message is read by the calling user. + // + // Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the + // calling credentials include one of the following [authorization + // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.readstate.readonly` + // - `https://www.googleapis.com/auth/chat.users.readstate` + optional bool read = 3; + + // The mute setting of the calling user for the space where the message is + // posted. The caller app can use this information to decide how to process + // the message depending on whether the space is muted for the user or not. + // + // Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the + // calling credentials include the following [authorization + // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.spacesettings` + SpaceNotificationSetting.MuteSetting space_mute_setting = 4; +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto index 4530c86093f3..3e01510ec32c 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto @@ -76,17 +76,20 @@ message Space { // Reserved. SPACE_THREADING_STATE_UNSPECIFIED = 0; - // Named spaces that support message threads. When users respond to a - // message, they can reply in-thread, which keeps their response in the - // context of the original message. + // Spaces that support message threads. When users respond to a message, + // they can reply in-thread, which keeps their response in the context of + // the original message. THREADED_MESSAGES = 2; // Named spaces where the conversation is organized by topic. Topics and // their replies are grouped together. GROUPED_MESSAGES = 3; - // Direct messages (DMs) between two people and group conversations between - // 3 or more people. + // Spaces that don't support message threading. This space threading state + // is only used for special cases including: + // + // * Continuous meeting chat where threading is intentionally turned off. + // * Legacy group conversations that were created prior to 2022. UNTHREADED_MESSAGES = 4; } diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java new file mode 100644 index 000000000000..2f107a6d6f6d --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessages.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_SearchMessages_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.SearchMessageResult; +import com.google.chat.v1.SearchMessagesRequest; +import com.google.chat.v1.SpaceName; + +public class AsyncSearchMessages { + + public static void main(String[] args) throws Exception { + asyncSearchMessages(); + } + + public static void asyncSearchMessages() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + SearchMessagesRequest request = + SearchMessagesRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + chatServiceClient.searchMessagesPagedCallable().futureCall(request); + // Do something. + for (SearchMessageResult element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_SearchMessages_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java new file mode 100644 index 000000000000..ebc8f22f57d1 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/AsyncSearchMessagesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_SearchMessages_Paged_async] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.SearchMessageResult; +import com.google.chat.v1.SearchMessagesRequest; +import com.google.chat.v1.SearchMessagesResponse; +import com.google.chat.v1.SpaceName; +import com.google.common.base.Strings; + +public class AsyncSearchMessagesPaged { + + public static void main(String[] args) throws Exception { + asyncSearchMessagesPaged(); + } + + public static void asyncSearchMessagesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + SearchMessagesRequest request = + SearchMessagesRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + SearchMessagesResponse response = chatServiceClient.searchMessagesCallable().call(request); + for (SearchMessageResult element : response.getResultsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END chat_v1_generated_ChatService_SearchMessages_Paged_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java new file mode 100644 index 000000000000..18276a2f9be3 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessages.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_SearchMessages_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.SearchMessageResult; +import com.google.chat.v1.SearchMessagesRequest; +import com.google.chat.v1.SpaceName; + +public class SyncSearchMessages { + + public static void main(String[] args) throws Exception { + syncSearchMessages(); + } + + public static void syncSearchMessages() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + SearchMessagesRequest request = + SearchMessagesRequest.newBuilder() + .setParent(SpaceName.of("[SPACE]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .build(); + for (SearchMessageResult element : chatServiceClient.searchMessages(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_SearchMessages_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessagesSpacenameString.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessagesSpacenameString.java new file mode 100644 index 000000000000..ab5b06047e63 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessagesSpacenameString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_SearchMessages_SpacenameString_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.SearchMessageResult; +import com.google.chat.v1.SpaceName; + +public class SyncSearchMessagesSpacenameString { + + public static void main(String[] args) throws Exception { + syncSearchMessagesSpacenameString(); + } + + public static void syncSearchMessagesSpacenameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + SpaceName parent = SpaceName.of("[SPACE]"); + String filter = "filter-1274492040"; + for (SearchMessageResult element : + chatServiceClient.searchMessages(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_SearchMessages_SpacenameString_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessagesStringString.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessagesStringString.java new file mode 100644 index 000000000000..fe0108336586 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/searchmessages/SyncSearchMessagesStringString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.chat.v1.samples; + +// [START chat_v1_generated_ChatService_SearchMessages_StringString_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.SearchMessageResult; +import com.google.chat.v1.SpaceName; + +public class SyncSearchMessagesStringString { + + public static void main(String[] args) throws Exception { + syncSearchMessagesStringString(); + } + + public static void syncSearchMessagesStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + String parent = SpaceName.of("[SPACE]").toString(); + String filter = "filter-1274492040"; + for (SearchMessageResult element : + chatServiceClient.searchMessages(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_SearchMessages_StringString_sync] diff --git a/java-chronicle/README.md b/java-chronicle/README.md index b7e3950494d0..b495ddb6cc6f 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.32.0 + 0.33.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-chronicle' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.32.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.33.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudapiregistry/README.md b/java-cloudapiregistry/README.md index 7f129f387713..e71cae2fc3a7 100644 --- a/java-cloudapiregistry/README.md +++ b/java-cloudapiregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudapiregistry - 0.13.0 + 0.14.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudapiregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.13.0' +implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.14.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudapiregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.14.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index 157073c580ab..be97cc45e0f0 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.96.0 + 3.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-build' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.96.0' +implementation 'com.google.cloud:google-cloud-build:3.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-build/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index a69b21adc39d..681afab51fd3 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.92.0 + 0.93.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.92.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.93.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcommerceconsumerprocurement/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 5cc174549d95..8b4375ad22c5 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.58.0 + 0.59.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-cloudcontrolspartner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.58.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.59.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index 3af34868e394..bb36299f8670 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.62.0 + 0.63.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-cloudquotas' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.62.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.63.0" ``` ## Authentication @@ -182,7 +182,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudquotas/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.63.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index d2ebe1e062b7..31acac3e44d5 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsecuritycompliance - 0.21.0 + 0.22.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.21.0' +implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.22.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsecuritycompliance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 884d78555d2b..a60f795e01f9 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.78.0 + 0.79.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudsupport' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.78.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.79.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsupport/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-commerceproducer/README.md b/java-commerceproducer/README.md index 78a9dcd9a38f..4f547a061751 100644 --- a/java-commerceproducer/README.md +++ b/java-commerceproducer/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-commerceproducer - 0.0.0 + 0.1.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-commerceproducer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-commerceproducer:0.0.0' +implementation 'com.google.cloud:google-cloud-commerceproducer:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-commerceproducer" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-commerceproducer" % "0.1.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-commerceproducer/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-commerceproducer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-commerceproducer/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-commerceproducer/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-compute/README.md b/java-compute/README.md index 71a45bd912bd..a32849dbaa50 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.104.0 + 1.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-compute' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.104.0' +implementation 'com.google.cloud:google-cloud-compute:1.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.105.0" ``` ## Authentication @@ -245,7 +245,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-compute/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 193deebf1fef..0019903d0aee 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.80.0 + 0.81.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-confidentialcomputing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.80.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.81.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-configdelivery/README.md b/java-configdelivery/README.md index 70e9680a938f..4d65c34ac59e 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.28.0 + 0.29.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-configdelivery' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.28.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.29.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.29.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index 6ae72da45b19..ac2c56a389f7 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.46.0 + 0.47.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-connectgateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.46.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.47.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 2f443f299699..fafd8a1fc2b4 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-contact-center-insights' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.94.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contact-center-insights/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-container/README.md b/java-container/README.md index 39e6784488be..108f2d7a09a0 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.97.0 + 2.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-container' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.97.0' +implementation 'com.google.cloud:google-cloud-container:2.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-container/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 02d498ced638..c38111c06289 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-containeranalysis' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.95.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index a643e007ed42..c4dbf976d943 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.90.0 + 0.91.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-contentwarehouse' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.90.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.91.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contentwarehouse/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index e0c06e2351d2..287811526423 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.94.0 + 1.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-data-fusion' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.94.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-data-fusion/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-databasecenter/README.md b/java-databasecenter/README.md index b1b22075f226..59be737733c6 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.15.0 + 0.16.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-databasecenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.15.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.16.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-databasecenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index 95c21fb6a402..7389ba48cd39 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datacatalog - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datacatalog' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.100.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datacatalog/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 95baab760100..b8247b8d508e 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.98.0 + 0.99.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dataflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.98.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.99.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.99.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/README.md b/java-dataform/README.md index f9dcbd3a02f1..da116043be39 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.93.0 + 0.94.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dataform' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.93.0' +implementation 'com.google.cloud:google-cloud-dataform:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.94.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataform/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index db3565df45b0..3cc04ae641a0 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalabeling - 0.214.0 + 0.215.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-datalabeling' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.214.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.215.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.214.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.215.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalabeling/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.214.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.215.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalineage/README.md b/java-datalineage/README.md index 1fa6addd4a67..ef3cf71e37ff 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.86.0 + 0.87.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datalineage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.86.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.87.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datamanager/README.md b/java-datamanager/README.md index f0df77c27203..48b304e796c6 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads data-manager - 0.15.0 + 0.16.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.15.0' +implementation 'com.google.api-ads:data-manager:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.15.0" +libraryDependencies += "com.google.api-ads" % "data-manager" % "0.16.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/data-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/data-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java index 999a04dd0f61..0a7bb91666f2 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java @@ -95,6 +95,20 @@ * * * + *

RemoveAllAudienceMembers + *

Removes all audience members from the provided destinations. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • removeAllAudienceMembers(RemoveAllAudienceMembersRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • removeAllAudienceMembersCallable() + *

+ * + * + * *

IngestEvents *

Uploads a list of [Event][google.ads.datamanager.v1.Event] resources from the provided [Destination][google.ads.datamanager.v1.Destination]. * @@ -388,6 +402,69 @@ public final RemoveAudienceMembersResponse removeAudienceMembers( return stub.removeAudienceMembersCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes all audience members from the provided destinations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) {
+   *   RemoveAllAudienceMembersRequest request =
+   *       RemoveAllAudienceMembersRequest.newBuilder()
+   *           .addAllDestinations(new ArrayList())
+   *           .setRemoveAsOfTime(Timestamp.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   RemoveAllAudienceMembersResponse response =
+   *       ingestionServiceClient.removeAllAudienceMembers(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 RemoveAllAudienceMembersResponse removeAllAudienceMembers( + RemoveAllAudienceMembersRequest request) { + return removeAllAudienceMembersCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes all audience members from the provided destinations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) {
+   *   RemoveAllAudienceMembersRequest request =
+   *       RemoveAllAudienceMembersRequest.newBuilder()
+   *           .addAllDestinations(new ArrayList())
+   *           .setRemoveAsOfTime(Timestamp.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       ingestionServiceClient.removeAllAudienceMembersCallable().futureCall(request);
+   *   // Do something.
+   *   RemoveAllAudienceMembersResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + removeAllAudienceMembersCallable() { + return stub.removeAllAudienceMembersCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Uploads a list of [Event][google.ads.datamanager.v1.Event] resources from the provided diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java index a0a869bc47b3..dc94bc2a85b2 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java @@ -100,6 +100,12 @@ public class IngestionServiceSettings extends ClientSettings + removeAllAudienceMembersSettings() { + return ((IngestionServiceStubSettings) getStubSettings()).removeAllAudienceMembersSettings(); + } + /** Returns the object with the settings used for calls to ingestEvents. */ public UnaryCallSettings ingestEventsSettings() { return ((IngestionServiceStubSettings) getStubSettings()).ingestEventsSettings(); @@ -240,6 +246,13 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().removeAudienceMembersSettings(); } + /** Returns the builder for the settings used for calls to removeAllAudienceMembers. */ + public UnaryCallSettings.Builder< + RemoveAllAudienceMembersRequest, RemoveAllAudienceMembersResponse> + removeAllAudienceMembersSettings() { + return getStubSettingsBuilder().removeAllAudienceMembersSettings(); + } + /** Returns the builder for the settings used for calls to ingestEvents. */ public UnaryCallSettings.Builder ingestEventsSettings() { diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json index 64ef439f1111..90e09db5d591 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json @@ -19,6 +19,9 @@ "IngestEvents": { "methods": ["ingestEvents", "ingestEventsCallable"] }, + "RemoveAllAudienceMembers": { + "methods": ["removeAllAudienceMembers", "removeAllAudienceMembersCallable"] + }, "RemoveAudienceMembers": { "methods": ["removeAudienceMembers", "removeAudienceMembersCallable"] }, diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java index 19d2e0a9ae6d..1632f9b803f2 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java @@ -22,6 +22,8 @@ import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; import com.google.ads.datamanager.v1.IngestEventsResponse; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse; import com.google.ads.datamanager.v1.RemoveAudienceMembersRequest; import com.google.ads.datamanager.v1.RemoveAudienceMembersResponse; import com.google.ads.datamanager.v1.RetrieveRequestStatusRequest; @@ -73,6 +75,21 @@ public class GrpcIngestionServiceStub extends IngestionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + RemoveAllAudienceMembersRequest, RemoveAllAudienceMembersResponse> + removeAllAudienceMembersMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.ads.datamanager.v1.IngestionService/RemoveAllAudienceMembers") + .setRequestMarshaller( + ProtoUtils.marshaller(RemoveAllAudienceMembersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RemoveAllAudienceMembersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor ingestEventsMethodDescriptor = MethodDescriptor.newBuilder() @@ -112,6 +129,8 @@ public class GrpcIngestionServiceStub extends IngestionServiceStub { ingestAudienceMembersCallable; private final UnaryCallable removeAudienceMembersCallable; + private final UnaryCallable + removeAllAudienceMembersCallable; private final UnaryCallable ingestEventsCallable; private final UnaryCallable ingestAdEventsCallable; private final UnaryCallable @@ -173,6 +192,12 @@ protected GrpcIngestionServiceStub( .newBuilder() .setMethodDescriptor(removeAudienceMembersMethodDescriptor) .build(); + GrpcCallSettings + removeAllAudienceMembersTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(removeAllAudienceMembersMethodDescriptor) + .build(); GrpcCallSettings ingestEventsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(ingestEventsMethodDescriptor) @@ -199,6 +224,11 @@ protected GrpcIngestionServiceStub( removeAudienceMembersTransportSettings, settings.removeAudienceMembersSettings(), clientContext); + this.removeAllAudienceMembersCallable = + callableFactory.createUnaryCallable( + removeAllAudienceMembersTransportSettings, + settings.removeAllAudienceMembersSettings(), + clientContext); this.ingestEventsCallable = callableFactory.createUnaryCallable( ingestEventsTransportSettings, settings.ingestEventsSettings(), clientContext); @@ -231,6 +261,12 @@ public GrpcOperationsStub getOperationsStub() { return removeAudienceMembersCallable; } + @Override + public UnaryCallable + removeAllAudienceMembersCallable() { + return removeAllAudienceMembersCallable; + } + @Override public UnaryCallable ingestEventsCallable() { return ingestEventsCallable; diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java index 13731be040d0..2b2937a3c553 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java @@ -22,6 +22,8 @@ import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; import com.google.ads.datamanager.v1.IngestEventsResponse; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse; import com.google.ads.datamanager.v1.RemoveAudienceMembersRequest; import com.google.ads.datamanager.v1.RemoveAudienceMembersResponse; import com.google.ads.datamanager.v1.RetrieveRequestStatusRequest; @@ -134,6 +136,45 @@ public class HttpJsonIngestionServiceStub extends IngestionServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + RemoveAllAudienceMembersRequest, RemoveAllAudienceMembersResponse> + removeAllAudienceMembersMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.ads.datamanager.v1.IngestionService/RemoveAllAudienceMembers") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/audienceMembers:removeAll", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RemoveAllAudienceMembersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor ingestEventsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -246,6 +287,8 @@ public class HttpJsonIngestionServiceStub extends IngestionServiceStub { ingestAudienceMembersCallable; private final UnaryCallable removeAudienceMembersCallable; + private final UnaryCallable + removeAllAudienceMembersCallable; private final UnaryCallable ingestEventsCallable; private final UnaryCallable ingestAdEventsCallable; private final UnaryCallable @@ -307,6 +350,13 @@ protected HttpJsonIngestionServiceStub( .setMethodDescriptor(removeAudienceMembersMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + removeAllAudienceMembersTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(removeAllAudienceMembersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings ingestEventsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(ingestEventsMethodDescriptor) @@ -336,6 +386,11 @@ protected HttpJsonIngestionServiceStub( removeAudienceMembersTransportSettings, settings.removeAudienceMembersSettings(), clientContext); + this.removeAllAudienceMembersCallable = + callableFactory.createUnaryCallable( + removeAllAudienceMembersTransportSettings, + settings.removeAllAudienceMembersSettings(), + clientContext); this.ingestEventsCallable = callableFactory.createUnaryCallable( ingestEventsTransportSettings, settings.ingestEventsSettings(), clientContext); @@ -357,6 +412,7 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(ingestAudienceMembersMethodDescriptor); methodDescriptors.add(removeAudienceMembersMethodDescriptor); + methodDescriptors.add(removeAllAudienceMembersMethodDescriptor); methodDescriptors.add(ingestEventsMethodDescriptor); methodDescriptors.add(ingestAdEventsMethodDescriptor); methodDescriptors.add(retrieveRequestStatusMethodDescriptor); @@ -375,6 +431,12 @@ public static List getMethodDescriptors() { return removeAudienceMembersCallable; } + @Override + public UnaryCallable + removeAllAudienceMembersCallable() { + return removeAllAudienceMembersCallable; + } + @Override public UnaryCallable ingestEventsCallable() { return ingestEventsCallable; diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java index d9da7b474adf..179abfd24e11 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java @@ -22,6 +22,8 @@ import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; import com.google.ads.datamanager.v1.IngestEventsResponse; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse; import com.google.ads.datamanager.v1.RemoveAudienceMembersRequest; import com.google.ads.datamanager.v1.RemoveAudienceMembersResponse; import com.google.ads.datamanager.v1.RetrieveRequestStatusRequest; @@ -51,6 +53,11 @@ public abstract class IngestionServiceStub implements BackgroundResource { throw new UnsupportedOperationException("Not implemented: removeAudienceMembersCallable()"); } + public UnaryCallable + removeAllAudienceMembersCallable() { + throw new UnsupportedOperationException("Not implemented: removeAllAudienceMembersCallable()"); + } + public UnaryCallable ingestEventsCallable() { throw new UnsupportedOperationException("Not implemented: ingestEventsCallable()"); } diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java index ffc49aa5dc5f..b8833efff4e3 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java @@ -22,6 +22,8 @@ import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; import com.google.ads.datamanager.v1.IngestEventsResponse; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse; import com.google.ads.datamanager.v1.RemoveAudienceMembersRequest; import com.google.ads.datamanager.v1.RemoveAudienceMembersResponse; import com.google.ads.datamanager.v1.RetrieveRequestStatusRequest; @@ -118,6 +120,8 @@ public class IngestionServiceStubSettings extends StubSettings removeAudienceMembersSettings; + private final UnaryCallSettings + removeAllAudienceMembersSettings; private final UnaryCallSettings ingestEventsSettings; private final UnaryCallSettings ingestAdEventsSettings; @@ -136,6 +140,12 @@ public class IngestionServiceStubSettings extends StubSettings + removeAllAudienceMembersSettings() { + return removeAllAudienceMembersSettings; + } + /** Returns the object with the settings used for calls to ingestEvents. */ public UnaryCallSettings ingestEventsSettings() { return ingestEventsSettings; @@ -265,6 +275,7 @@ protected IngestionServiceStubSettings(Builder settingsBuilder) throws IOExcepti ingestAudienceMembersSettings = settingsBuilder.ingestAudienceMembersSettings().build(); removeAudienceMembersSettings = settingsBuilder.removeAudienceMembersSettings().build(); + removeAllAudienceMembersSettings = settingsBuilder.removeAllAudienceMembersSettings().build(); ingestEventsSettings = settingsBuilder.ingestEventsSettings().build(); ingestAdEventsSettings = settingsBuilder.ingestAdEventsSettings().build(); retrieveRequestStatusSettings = settingsBuilder.retrieveRequestStatusSettings().build(); @@ -288,6 +299,9 @@ public static class Builder extends StubSettings.Builder removeAudienceMembersSettings; + private final UnaryCallSettings.Builder< + RemoveAllAudienceMembersRequest, RemoveAllAudienceMembersResponse> + removeAllAudienceMembersSettings; private final UnaryCallSettings.Builder ingestEventsSettings; private final UnaryCallSettings.Builder @@ -324,6 +338,7 @@ protected Builder(@Nullable ClientContext clientContext) { ingestAudienceMembersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); removeAudienceMembersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + removeAllAudienceMembersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); ingestEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); ingestAdEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); retrieveRequestStatusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -332,6 +347,7 @@ protected Builder(@Nullable ClientContext clientContext) { ImmutableList.>of( ingestAudienceMembersSettings, removeAudienceMembersSettings, + removeAllAudienceMembersSettings, ingestEventsSettings, ingestAdEventsSettings, retrieveRequestStatusSettings); @@ -343,6 +359,7 @@ protected Builder(IngestionServiceStubSettings settings) { ingestAudienceMembersSettings = settings.ingestAudienceMembersSettings.toBuilder(); removeAudienceMembersSettings = settings.removeAudienceMembersSettings.toBuilder(); + removeAllAudienceMembersSettings = settings.removeAllAudienceMembersSettings.toBuilder(); ingestEventsSettings = settings.ingestEventsSettings.toBuilder(); ingestAdEventsSettings = settings.ingestAdEventsSettings.toBuilder(); retrieveRequestStatusSettings = settings.retrieveRequestStatusSettings.toBuilder(); @@ -351,6 +368,7 @@ protected Builder(IngestionServiceStubSettings settings) { ImmutableList.>of( ingestAudienceMembersSettings, removeAudienceMembersSettings, + removeAllAudienceMembersSettings, ingestEventsSettings, ingestAdEventsSettings, retrieveRequestStatusSettings); @@ -391,6 +409,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .removeAllAudienceMembersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .ingestEventsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -436,6 +459,13 @@ public Builder applyToAllUnaryMethods( return removeAudienceMembersSettings; } + /** Returns the builder for the settings used for calls to removeAllAudienceMembers. */ + public UnaryCallSettings.Builder< + RemoveAllAudienceMembersRequest, RemoveAllAudienceMembersResponse> + removeAllAudienceMembersSettings() { + return removeAllAudienceMembersSettings; + } + /** Returns the builder for the settings used for calls to ingestEvents. */ public UnaryCallSettings.Builder ingestEventsSettings() { diff --git a/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json b/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json index 15bfcf0c244d..efd9229df5c7 100644 --- a/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json +++ b/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json @@ -683,6 +683,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.FieldWarning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.FieldWarning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.GcpWrappedKeyInfo", "queryAllDeclaredConstructors": true, @@ -773,6 +791,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.GoogleUserIdData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.GoogleUserIdData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.IngestAdEventsRequest", "queryAllDeclaredConstructors": true, @@ -1304,6 +1340,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.PartnerProvidedIdData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.PartnerProvidedIdData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.Platform", "queryAllDeclaredConstructors": true, @@ -1421,6 +1475,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.RemoveAudienceMembersRequest", "queryAllDeclaredConstructors": true, @@ -1556,6 +1646,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$IngestGoogleUserIdDataStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$IngestGoogleUserIdDataStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$IngestMobileDataStatus", "queryAllDeclaredConstructors": true, @@ -1592,6 +1700,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$IngestPartnerProvidedIdDataStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$IngestPartnerProvidedIdDataStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$IngestPpidDataStatus", "queryAllDeclaredConstructors": true, @@ -1646,6 +1772,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$RemoveAllAudienceMembersStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$RemoveAllAudienceMembersStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$RemoveAudienceMembersStatus", "queryAllDeclaredConstructors": true, @@ -1682,6 +1826,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$RemoveGoogleUserIdDataStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$RemoveGoogleUserIdDataStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$RemoveMobileDataStatus", "queryAllDeclaredConstructors": true, @@ -1718,6 +1880,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$RemovePartnerProvidedIdDataStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$RemovePartnerProvidedIdDataStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.RequestStatusPerDestination$RemovePpidDataStatus", "queryAllDeclaredConstructors": true, @@ -2420,6 +2600,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.WarningReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.BatchingConfigProto", "queryAllDeclaredConstructors": true, diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java index 5c4affa6f640..7bdc9469adce 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -75,7 +76,10 @@ public void tearDown() throws Exception { @Test public void ingestAudienceMembersTest() throws Exception { IngestAudienceMembersResponse expectedResponse = - IngestAudienceMembersResponse.newBuilder().setRequestId("requestId693933066").build(); + IngestAudienceMembersResponse.newBuilder() + .setRequestId("requestId693933066") + .addAllFieldWarnings(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); IngestAudienceMembersRequest request = @@ -188,10 +192,65 @@ public void removeAudienceMembersExceptionTest() throws Exception { } } + @Test + public void removeAllAudienceMembersTest() throws Exception { + RemoveAllAudienceMembersResponse expectedResponse = + RemoveAllAudienceMembersResponse.newBuilder().setRequestId("requestId693933066").build(); + mockService.addResponse(expectedResponse); + + RemoveAllAudienceMembersRequest request = + RemoveAllAudienceMembersRequest.newBuilder() + .addAllDestinations(new ArrayList()) + .setRemoveAsOfTime(Timestamp.newBuilder().build()) + .setValidateOnly(true) + .build(); + + RemoveAllAudienceMembersResponse actualResponse = client.removeAllAudienceMembers(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void removeAllAudienceMembersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RemoveAllAudienceMembersRequest request = + RemoveAllAudienceMembersRequest.newBuilder() + .addAllDestinations(new ArrayList()) + .setRemoveAsOfTime(Timestamp.newBuilder().build()) + .setValidateOnly(true) + .build(); + client.removeAllAudienceMembers(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void ingestEventsTest() throws Exception { IngestEventsResponse expectedResponse = - IngestEventsResponse.newBuilder().setRequestId("requestId693933066").build(); + IngestEventsResponse.newBuilder() + .setRequestId("requestId693933066") + .addAllFieldWarnings(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); IngestEventsRequest request = diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java index ab60a33290c5..f788d37f7258 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java @@ -24,6 +24,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; @@ -79,7 +80,10 @@ public void tearDown() throws Exception { @Test public void ingestAudienceMembersTest() throws Exception { IngestAudienceMembersResponse expectedResponse = - IngestAudienceMembersResponse.newBuilder().setRequestId("requestId693933066").build(); + IngestAudienceMembersResponse.newBuilder() + .setRequestId("requestId693933066") + .addAllFieldWarnings(new ArrayList()) + .build(); mockIngestionService.addResponse(expectedResponse); IngestAudienceMembersRequest request = @@ -192,10 +196,62 @@ public void removeAudienceMembersExceptionTest() throws Exception { } } + @Test + public void removeAllAudienceMembersTest() throws Exception { + RemoveAllAudienceMembersResponse expectedResponse = + RemoveAllAudienceMembersResponse.newBuilder().setRequestId("requestId693933066").build(); + mockIngestionService.addResponse(expectedResponse); + + RemoveAllAudienceMembersRequest request = + RemoveAllAudienceMembersRequest.newBuilder() + .addAllDestinations(new ArrayList()) + .setRemoveAsOfTime(Timestamp.newBuilder().build()) + .setValidateOnly(true) + .build(); + + RemoveAllAudienceMembersResponse actualResponse = client.removeAllAudienceMembers(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIngestionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveAllAudienceMembersRequest actualRequest = + ((RemoveAllAudienceMembersRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getDestinationsList(), actualRequest.getDestinationsList()); + Assert.assertEquals(request.getRemoveAsOfTime(), actualRequest.getRemoveAsOfTime()); + Assert.assertEquals(request.getValidateOnly(), actualRequest.getValidateOnly()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeAllAudienceMembersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIngestionService.addException(exception); + + try { + RemoveAllAudienceMembersRequest request = + RemoveAllAudienceMembersRequest.newBuilder() + .addAllDestinations(new ArrayList()) + .setRemoveAsOfTime(Timestamp.newBuilder().build()) + .setValidateOnly(true) + .build(); + client.removeAllAudienceMembers(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void ingestEventsTest() throws Exception { IngestEventsResponse expectedResponse = - IngestEventsResponse.newBuilder().setRequestId("requestId693933066").build(); + IngestEventsResponse.newBuilder() + .setRequestId("requestId693933066") + .addAllFieldWarnings(new ArrayList()) + .build(); mockIngestionService.addResponse(expectedResponse); IngestEventsRequest request = diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java index d2fbaddd10e6..926931a59b1a 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java @@ -104,6 +104,29 @@ public void removeAudienceMembers( } } + @Override + public void removeAllAudienceMembers( + RemoveAllAudienceMembersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RemoveAllAudienceMembersResponse) { + requests.add(request); + responseObserver.onNext(((RemoveAllAudienceMembersResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RemoveAllAudienceMembers, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + RemoveAllAudienceMembersResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void ingestEvents( IngestEventsRequest request, StreamObserver responseObserver) { diff --git a/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java b/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java index 5762aa5fedf9..fbc16a5c6f5d 100644 --- a/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java +++ b/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java @@ -132,6 +132,57 @@ private IngestionServiceGrpc() {} return getRemoveAudienceMembersMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest, + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse> + getRemoveAllAudienceMembersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveAllAudienceMembers", + requestType = com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest.class, + responseType = com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest, + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse> + getRemoveAllAudienceMembersMethod() { + io.grpc.MethodDescriptor< + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest, + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse> + getRemoveAllAudienceMembersMethod; + if ((getRemoveAllAudienceMembersMethod = IngestionServiceGrpc.getRemoveAllAudienceMembersMethod) + == null) { + synchronized (IngestionServiceGrpc.class) { + if ((getRemoveAllAudienceMembersMethod = + IngestionServiceGrpc.getRemoveAllAudienceMembersMethod) + == null) { + IngestionServiceGrpc.getRemoveAllAudienceMembersMethod = + getRemoveAllAudienceMembersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RemoveAllAudienceMembers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IngestionServiceMethodDescriptorSupplier("RemoveAllAudienceMembers")) + .build(); + } + } + } + return getRemoveAllAudienceMembersMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.ads.datamanager.v1.IngestEventsRequest, com.google.ads.datamanager.v1.IngestEventsResponse> @@ -373,6 +424,21 @@ default void removeAudienceMembers( getRemoveAudienceMembersMethod(), responseObserver); } + /** + * + * + *
+     * Removes all audience members from the provided destinations.
+     * 
+ */ + default void removeAllAudienceMembers( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveAllAudienceMembersMethod(), responseObserver); + } + /** * * @@ -496,6 +562,23 @@ public void removeAudienceMembers( responseObserver); } + /** + * + * + *
+     * Removes all audience members from the provided destinations.
+     * 
+ */ + public void removeAllAudienceMembers( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveAllAudienceMembersMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -605,6 +688,20 @@ public com.google.ads.datamanager.v1.RemoveAudienceMembersResponse removeAudienc getChannel(), getRemoveAudienceMembersMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Removes all audience members from the provided destinations.
+     * 
+ */ + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse removeAllAudienceMembers( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRemoveAllAudienceMembersMethod(), getCallOptions(), request); + } + /** * * @@ -701,6 +798,19 @@ public com.google.ads.datamanager.v1.RemoveAudienceMembersResponse removeAudienc getChannel(), getRemoveAudienceMembersMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Removes all audience members from the provided destinations.
+     * 
+ */ + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse removeAllAudienceMembers( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveAllAudienceMembersMethod(), getCallOptions(), request); + } + /** * * @@ -797,6 +907,21 @@ protected IngestionServiceFutureStub build( getChannel().newCall(getRemoveAudienceMembersMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Removes all audience members from the provided destinations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse> + removeAllAudienceMembers( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveAllAudienceMembersMethod(), getCallOptions()), request); + } + /** * * @@ -847,9 +972,10 @@ protected IngestionServiceFutureStub build( private static final int METHODID_INGEST_AUDIENCE_MEMBERS = 0; private static final int METHODID_REMOVE_AUDIENCE_MEMBERS = 1; - private static final int METHODID_INGEST_EVENTS = 2; - private static final int METHODID_INGEST_AD_EVENTS = 3; - private static final int METHODID_RETRIEVE_REQUEST_STATUS = 4; + private static final int METHODID_REMOVE_ALL_AUDIENCE_MEMBERS = 2; + private static final int METHODID_INGEST_EVENTS = 3; + private static final int METHODID_INGEST_AD_EVENTS = 4; + private static final int METHODID_RETRIEVE_REQUEST_STATUS = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -882,6 +1008,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.ads.datamanager.v1.RemoveAudienceMembersResponse>) responseObserver); break; + case METHODID_REMOVE_ALL_AUDIENCE_MEMBERS: + serviceImpl.removeAllAudienceMembers( + (com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse>) + responseObserver); + break; case METHODID_INGEST_EVENTS: serviceImpl.ingestEvents( (com.google.ads.datamanager.v1.IngestEventsRequest) request, @@ -933,6 +1066,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.ads.datamanager.v1.RemoveAudienceMembersRequest, com.google.ads.datamanager.v1.RemoveAudienceMembersResponse>( service, METHODID_REMOVE_AUDIENCE_MEMBERS))) + .addMethod( + getRemoveAllAudienceMembersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest, + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse>( + service, METHODID_REMOVE_ALL_AUDIENCE_MEMBERS))) .addMethod( getIngestEventsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1007,6 +1147,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new IngestionServiceFileDescriptorSupplier()) .addMethod(getIngestAudienceMembersMethod()) .addMethod(getRemoveAudienceMembersMethod()) + .addMethod(getRemoveAllAudienceMembersMethod()) .addMethod(getIngestEventsMethod()) .addMethod(getIngestAdEventsMethod()) .addMethod(getRetrieveRequestStatusMethod()) diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java index fec71b056646..f19f28734b79 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java @@ -1239,12 +1239,12 @@ public com.google.ads.datamanager.v1.UserDataOrBuilder getUserDataOrBuilder() { * * *
-   * Optional. Information gathered about the device being used when the ad
+   * Required. Information gathered about the device being used when the ad
    * event happened.
    * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the deviceInfo field is set. @@ -1258,12 +1258,12 @@ public boolean hasDeviceInfo() { * * *
-   * Optional. Information gathered about the device being used when the ad
+   * Required. Information gathered about the device being used when the ad
    * event happened.
    * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The deviceInfo. @@ -1279,12 +1279,12 @@ public com.google.ads.datamanager.v1.DeviceInfo getDeviceInfo() { * * *
-   * Optional. Information gathered about the device being used when the ad
+   * Required. Information gathered about the device being used when the ad
    * event happened.
    * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -1991,10 +1991,10 @@ public int getAdWidth() { * * *
-   * Required. The ISO 3166-2 country plus subdivision.
+   * Optional. The ISO 3166-2 country plus subdivision.
    * 
* - * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * string region_code = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return The regionCode. */ @@ -2015,10 +2015,10 @@ public java.lang.String getRegionCode() { * * *
-   * Required. The ISO 3166-2 country plus subdivision.
+   * Optional. The ISO 3166-2 country plus subdivision.
    * 
* - * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * string region_code = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for regionCode. */ @@ -5171,12 +5171,12 @@ public com.google.ads.datamanager.v1.UserDataOrBuilder getUserDataOrBuilder() { * * *
-     * Optional. Information gathered about the device being used when the ad
+     * Required. Information gathered about the device being used when the ad
      * event happened.
      * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the deviceInfo field is set. @@ -5189,12 +5189,12 @@ public boolean hasDeviceInfo() { * * *
-     * Optional. Information gathered about the device being used when the ad
+     * Required. Information gathered about the device being used when the ad
      * event happened.
      * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The deviceInfo. @@ -5213,12 +5213,12 @@ public com.google.ads.datamanager.v1.DeviceInfo getDeviceInfo() { * * *
-     * Optional. Information gathered about the device being used when the ad
+     * Required. Information gathered about the device being used when the ad
      * event happened.
      * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo value) { @@ -5239,12 +5239,12 @@ public Builder setDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo value) { * * *
-     * Optional. Information gathered about the device being used when the ad
+     * Required. Information gathered about the device being used when the ad
      * event happened.
      * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo.Builder builderForValue) { @@ -5262,12 +5262,12 @@ public Builder setDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo.Builder bu * * *
-     * Optional. Information gathered about the device being used when the ad
+     * Required. Information gathered about the device being used when the ad
      * event happened.
      * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo value) { @@ -5293,12 +5293,12 @@ public Builder mergeDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo value) { * * *
-     * Optional. Information gathered about the device being used when the ad
+     * Required. Information gathered about the device being used when the ad
      * event happened.
      * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearDeviceInfo() { @@ -5316,12 +5316,12 @@ public Builder clearDeviceInfo() { * * *
-     * Optional. Information gathered about the device being used when the ad
+     * Required. Information gathered about the device being used when the ad
      * event happened.
      * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.ads.datamanager.v1.DeviceInfo.Builder getDeviceInfoBuilder() { @@ -5334,12 +5334,12 @@ public com.google.ads.datamanager.v1.DeviceInfo.Builder getDeviceInfoBuilder() { * * *
-     * Optional. Information gathered about the device being used when the ad
+     * Required. Information gathered about the device being used when the ad
      * event happened.
      * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.ads.datamanager.v1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { @@ -5356,12 +5356,12 @@ public com.google.ads.datamanager.v1.DeviceInfoOrBuilder getDeviceInfoOrBuilder( * * *
-     * Optional. Information gathered about the device being used when the ad
+     * Required. Information gathered about the device being used when the ad
      * event happened.
      * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilder< @@ -6823,10 +6823,10 @@ public Builder clearAdWidth() { * * *
-     * Required. The ISO 3166-2 country plus subdivision.
+     * Optional. The ISO 3166-2 country plus subdivision.
      * 
* - * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * string region_code = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return The regionCode. */ @@ -6846,10 +6846,10 @@ public java.lang.String getRegionCode() { * * *
-     * Required. The ISO 3166-2 country plus subdivision.
+     * Optional. The ISO 3166-2 country plus subdivision.
      * 
* - * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * string region_code = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for regionCode. */ @@ -6869,10 +6869,10 @@ public com.google.protobuf.ByteString getRegionCodeBytes() { * * *
-     * Required. The ISO 3166-2 country plus subdivision.
+     * Optional. The ISO 3166-2 country plus subdivision.
      * 
* - * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * string region_code = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The regionCode to set. * @return This builder for chaining. @@ -6891,10 +6891,10 @@ public Builder setRegionCode(java.lang.String value) { * * *
-     * Required. The ISO 3166-2 country plus subdivision.
+     * Optional. The ISO 3166-2 country plus subdivision.
      * 
* - * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * string region_code = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -6909,10 +6909,10 @@ public Builder clearRegionCode() { * * *
-     * Required. The ISO 3166-2 country plus subdivision.
+     * Optional. The ISO 3166-2 country plus subdivision.
      * 
* - * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * string region_code = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for regionCode to set. * @return This builder for chaining. diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java index 4238f1a505b0..b112cabc706f 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java @@ -300,12 +300,12 @@ public interface AdEventOrBuilder * * *
-   * Optional. Information gathered about the device being used when the ad
+   * Required. Information gathered about the device being used when the ad
    * event happened.
    * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the deviceInfo field is set. @@ -316,12 +316,12 @@ public interface AdEventOrBuilder * * *
-   * Optional. Information gathered about the device being used when the ad
+   * Required. Information gathered about the device being used when the ad
    * event happened.
    * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * * * @return The deviceInfo. @@ -332,12 +332,12 @@ public interface AdEventOrBuilder * * *
-   * Optional. Information gathered about the device being used when the ad
+   * Required. Information gathered about the device being used when the ad
    * event happened.
    * 
* * - * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.ads.datamanager.v1.DeviceInfoOrBuilder getDeviceInfoOrBuilder(); @@ -736,10 +736,10 @@ public interface AdEventOrBuilder * * *
-   * Required. The ISO 3166-2 country plus subdivision.
+   * Optional. The ISO 3166-2 country plus subdivision.
    * 
* - * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * string region_code = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return The regionCode. */ @@ -749,10 +749,10 @@ public interface AdEventOrBuilder * * *
-   * Required. The ISO 3166-2 country plus subdivision.
+   * Optional. The ISO 3166-2 country plus subdivision.
    * 
* - * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * string region_code = 22 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for regionCode. */ diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java index 92c917f69447..08f2c20c1c0d 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java @@ -71,7 +71,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tuser_data\030\007" + " \001(\0132#.google.ads.datamanager.v1.UserDataB\003\340A\001\022?\n" + "\013device_info\030\010" - + " \001(\0132%.google.ads.datamanager.v1.DeviceInfoB\003\340A\001\022\035\n" + + " \001(\0132%.google.ads.datamanager.v1.DeviceInfoB\003\340A\002\022\035\n" + "\020mobile_device_id\030\t \001(\tB\003\340A\001\022\030\n" + "\013campaign_id\030\n" + " \001(\tB\003\340A\002\022\032\n\r" @@ -88,7 +88,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023ad_placement_string\030\023 \001(\tH\003\022\026\n" + "\tad_height\030\024 \001(\005B\003\340A\001\022\025\n" + "\010ad_width\030\025 \001(\005B\003\340A\001\022\030\n" - + "\013region_code\030\026 \001(\tB\003\340A\002\022\023\n" + + "\013region_code\030\026 \001(\tB\003\340A\001\022\023\n" + "\006source\030\027 \001(\tB\003\340A\002\022\023\n" + "\006medium\030\030 \001(\tB\003\340A\002\022B\n" + "\016targeting_type\030\031" diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AddressInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AddressInfo.java index 44edde16df15..099792ea86c5 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AddressInfo.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AddressInfo.java @@ -56,6 +56,9 @@ private AddressInfo() { familyName_ = ""; regionCode_ = ""; postalCode_ = ""; + addressLine_ = ""; + city_ = ""; + administrativeArea_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -291,6 +294,205 @@ public com.google.protobuf.ByteString getPostalCodeBytes() { } } + public static final int ADDRESS_LINE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object addressLine_ = ""; + + /** + * + * + *
+   * Optional. The street and number of the user's address. Used only for
+   * Google Analytics. This field is hashed and possibly encrypted.
+   *
+   * Normalize the value before hashing:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string address_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The addressLine. + */ + @java.lang.Override + public java.lang.String getAddressLine() { + java.lang.Object ref = addressLine_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressLine_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The street and number of the user's address. Used only for
+   * Google Analytics. This field is hashed and possibly encrypted.
+   *
+   * Normalize the value before hashing:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string address_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for addressLine. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressLineBytes() { + java.lang.Object ref = addressLine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CITY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object city_ = ""; + + /** + * + * + *
+   * Optional. The city of the user's address. Used only for Google Analytics.
+   *
+   * The value should be normalized as such:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string city = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The city. + */ + @java.lang.Override + public java.lang.String getCity() { + java.lang.Object ref = city_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + city_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The city of the user's address. Used only for Google Analytics.
+   *
+   * The value should be normalized as such:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string city = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for city. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCityBytes() { + java.lang.Object ref = city_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + city_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object administrativeArea_ = ""; + + /** + * + * + *
+   * Optional. The administrative area (state/province) of the user's address.
+   * Used only for Google Analytics.
+   *
+   * The value should be normalized as such:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The administrativeArea. + */ + @java.lang.Override + public java.lang.String getAdministrativeArea() { + java.lang.Object ref = administrativeArea_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + administrativeArea_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The administrative area (state/province) of the user's address.
+   * Used only for Google Analytics.
+   *
+   * The value should be normalized as such:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for administrativeArea. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdministrativeAreaBytes() { + java.lang.Object ref = administrativeArea_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + administrativeArea_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -317,6 +519,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(postalCode_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, postalCode_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(addressLine_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, addressLine_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(city_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, city_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(administrativeArea_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, administrativeArea_); + } getUnknownFields().writeTo(output); } @@ -338,6 +549,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(postalCode_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, postalCode_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(addressLine_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, addressLine_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(city_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, city_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(administrativeArea_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, administrativeArea_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -358,6 +578,9 @@ public boolean equals(final java.lang.Object obj) { if (!getFamilyName().equals(other.getFamilyName())) return false; if (!getRegionCode().equals(other.getRegionCode())) return false; if (!getPostalCode().equals(other.getPostalCode())) return false; + if (!getAddressLine().equals(other.getAddressLine())) return false; + if (!getCity().equals(other.getCity())) return false; + if (!getAdministrativeArea().equals(other.getAdministrativeArea())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -377,6 +600,12 @@ public int hashCode() { hash = (53 * hash) + getRegionCode().hashCode(); hash = (37 * hash) + POSTAL_CODE_FIELD_NUMBER; hash = (53 * hash) + getPostalCode().hashCode(); + hash = (37 * hash) + ADDRESS_LINE_FIELD_NUMBER; + hash = (53 * hash) + getAddressLine().hashCode(); + hash = (37 * hash) + CITY_FIELD_NUMBER; + hash = (53 * hash) + getCity().hashCode(); + hash = (37 * hash) + ADMINISTRATIVE_AREA_FIELD_NUMBER; + hash = (53 * hash) + getAdministrativeArea().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -521,6 +750,9 @@ public Builder clear() { familyName_ = ""; regionCode_ = ""; postalCode_ = ""; + addressLine_ = ""; + city_ = ""; + administrativeArea_ = ""; return this; } @@ -569,6 +801,15 @@ private void buildPartial0(com.google.ads.datamanager.v1.AddressInfo result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.postalCode_ = postalCode_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.addressLine_ = addressLine_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.city_ = city_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.administrativeArea_ = administrativeArea_; + } } @java.lang.Override @@ -603,6 +844,21 @@ public Builder mergeFrom(com.google.ads.datamanager.v1.AddressInfo other) { bitField0_ |= 0x00000008; onChanged(); } + if (!other.getAddressLine().isEmpty()) { + addressLine_ = other.addressLine_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getCity().isEmpty()) { + city_ = other.city_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getAdministrativeArea().isEmpty()) { + administrativeArea_ = other.administrativeArea_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -653,6 +909,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + addressLine_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + city_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + administrativeArea_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1131,6 +1405,439 @@ public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object addressLine_ = ""; + + /** + * + * + *
+     * Optional. The street and number of the user's address. Used only for
+     * Google Analytics. This field is hashed and possibly encrypted.
+     *
+     * Normalize the value before hashing:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string address_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The addressLine. + */ + public java.lang.String getAddressLine() { + java.lang.Object ref = addressLine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressLine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The street and number of the user's address. Used only for
+     * Google Analytics. This field is hashed and possibly encrypted.
+     *
+     * Normalize the value before hashing:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string address_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for addressLine. + */ + public com.google.protobuf.ByteString getAddressLineBytes() { + java.lang.Object ref = addressLine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressLine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The street and number of the user's address. Used only for
+     * Google Analytics. This field is hashed and possibly encrypted.
+     *
+     * Normalize the value before hashing:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string address_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The addressLine to set. + * @return This builder for chaining. + */ + public Builder setAddressLine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressLine_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The street and number of the user's address. Used only for
+     * Google Analytics. This field is hashed and possibly encrypted.
+     *
+     * Normalize the value before hashing:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string address_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAddressLine() { + addressLine_ = getDefaultInstance().getAddressLine(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The street and number of the user's address. Used only for
+     * Google Analytics. This field is hashed and possibly encrypted.
+     *
+     * Normalize the value before hashing:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string address_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for addressLine to set. + * @return This builder for chaining. + */ + public Builder setAddressLineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressLine_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object city_ = ""; + + /** + * + * + *
+     * Optional. The city of the user's address. Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string city = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The city. + */ + public java.lang.String getCity() { + java.lang.Object ref = city_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + city_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The city of the user's address. Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string city = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for city. + */ + public com.google.protobuf.ByteString getCityBytes() { + java.lang.Object ref = city_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + city_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The city of the user's address. Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string city = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The city to set. + * @return This builder for chaining. + */ + public Builder setCity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + city_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The city of the user's address. Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string city = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCity() { + city_ = getDefaultInstance().getCity(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The city of the user's address. Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string city = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for city to set. + * @return This builder for chaining. + */ + public Builder setCityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + city_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object administrativeArea_ = ""; + + /** + * + * + *
+     * Optional. The administrative area (state/province) of the user's address.
+     * Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The administrativeArea. + */ + public java.lang.String getAdministrativeArea() { + java.lang.Object ref = administrativeArea_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + administrativeArea_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The administrative area (state/province) of the user's address.
+     * Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for administrativeArea. + */ + public com.google.protobuf.ByteString getAdministrativeAreaBytes() { + java.lang.Object ref = administrativeArea_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + administrativeArea_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The administrative area (state/province) of the user's address.
+     * Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The administrativeArea to set. + * @return This builder for chaining. + */ + public Builder setAdministrativeArea(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + administrativeArea_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The administrative area (state/province) of the user's address.
+     * Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAdministrativeArea() { + administrativeArea_ = getDefaultInstance().getAdministrativeArea(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The administrative area (state/province) of the user's address.
+     * Used only for Google Analytics.
+     *
+     * The value should be normalized as such:
+     *
+     * - Remove symbol characters
+     * - Convert to lowercase
+     * - Remove leading and trailing whitespace
+     * 
+ * + * string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for administrativeArea to set. + * @return This builder for chaining. + */ + public Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + administrativeArea_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.AddressInfo) } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AddressInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AddressInfoOrBuilder.java index 687472f21131..c76be3282592 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AddressInfoOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AddressInfoOrBuilder.java @@ -135,4 +135,122 @@ public interface AddressInfoOrBuilder * @return The bytes for postalCode. */ com.google.protobuf.ByteString getPostalCodeBytes(); + + /** + * + * + *
+   * Optional. The street and number of the user's address. Used only for
+   * Google Analytics. This field is hashed and possibly encrypted.
+   *
+   * Normalize the value before hashing:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string address_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The addressLine. + */ + java.lang.String getAddressLine(); + + /** + * + * + *
+   * Optional. The street and number of the user's address. Used only for
+   * Google Analytics. This field is hashed and possibly encrypted.
+   *
+   * Normalize the value before hashing:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string address_line = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for addressLine. + */ + com.google.protobuf.ByteString getAddressLineBytes(); + + /** + * + * + *
+   * Optional. The city of the user's address. Used only for Google Analytics.
+   *
+   * The value should be normalized as such:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string city = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The city. + */ + java.lang.String getCity(); + + /** + * + * + *
+   * Optional. The city of the user's address. Used only for Google Analytics.
+   *
+   * The value should be normalized as such:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string city = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for city. + */ + com.google.protobuf.ByteString getCityBytes(); + + /** + * + * + *
+   * Optional. The administrative area (state/province) of the user's address.
+   * Used only for Google Analytics.
+   *
+   * The value should be normalized as such:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The administrativeArea. + */ + java.lang.String getAdministrativeArea(); + + /** + * + * + *
+   * Optional. The administrative area (state/province) of the user's address.
+   * Used only for Google Analytics.
+   *
+   * The value should be normalized as such:
+   *
+   * - Remove symbol characters
+   * - Convert to lowercase
+   * - Remove leading and trailing whitespace
+   * 
+ * + * string administrative_area = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for administrativeArea. + */ + com.google.protobuf.ByteString getAdministrativeAreaBytes(); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceMember.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceMember.java index 5acdbfc27aa5..0e6362e4943b 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceMember.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceMember.java @@ -86,6 +86,8 @@ public enum DataCase USER_ID_DATA(6), PPID_DATA(7), COMPOSITE_DATA(8), + GOOGLE_USER_ID_DATA(9), + PARTNER_PROVIDED_ID_DATA(10), DATA_NOT_SET(0); private final int value; @@ -117,6 +119,10 @@ public static DataCase forNumber(int value) { return PPID_DATA; case 8: return COMPOSITE_DATA; + case 9: + return GOOGLE_USER_ID_DATA; + case 10: + return PARTNER_PROVIDED_ID_DATA; case 0: return DATA_NOT_SET; default: @@ -555,6 +561,115 @@ public com.google.ads.datamanager.v1.CompositeDataOrBuilder getCompositeDataOrBu return com.google.ads.datamanager.v1.CompositeData.getDefaultInstance(); } + public static final int GOOGLE_USER_ID_DATA_FIELD_NUMBER = 9; + + /** + * + * + *
+   * Encrypted Google User IDs.
+   * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + * + * @return Whether the googleUserIdData field is set. + */ + @java.lang.Override + public boolean hasGoogleUserIdData() { + return dataCase_ == 9; + } + + /** + * + * + *
+   * Encrypted Google User IDs.
+   * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + * + * @return The googleUserIdData. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.GoogleUserIdData getGoogleUserIdData() { + if (dataCase_ == 9) { + return (com.google.ads.datamanager.v1.GoogleUserIdData) data_; + } + return com.google.ads.datamanager.v1.GoogleUserIdData.getDefaultInstance(); + } + + /** + * + * + *
+   * Encrypted Google User IDs.
+   * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.GoogleUserIdDataOrBuilder getGoogleUserIdDataOrBuilder() { + if (dataCase_ == 9) { + return (com.google.ads.datamanager.v1.GoogleUserIdData) data_; + } + return com.google.ads.datamanager.v1.GoogleUserIdData.getDefaultInstance(); + } + + public static final int PARTNER_PROVIDED_ID_DATA_FIELD_NUMBER = 10; + + /** + * + * + *
+   * Partner-provided identifiers.
+   * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + * + * @return Whether the partnerProvidedIdData field is set. + */ + @java.lang.Override + public boolean hasPartnerProvidedIdData() { + return dataCase_ == 10; + } + + /** + * + * + *
+   * Partner-provided identifiers.
+   * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + * + * @return The partnerProvidedIdData. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerProvidedIdData getPartnerProvidedIdData() { + if (dataCase_ == 10) { + return (com.google.ads.datamanager.v1.PartnerProvidedIdData) data_; + } + return com.google.ads.datamanager.v1.PartnerProvidedIdData.getDefaultInstance(); + } + + /** + * + * + *
+   * Partner-provided identifiers.
+   * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerProvidedIdDataOrBuilder + getPartnerProvidedIdDataOrBuilder() { + if (dataCase_ == 10) { + return (com.google.ads.datamanager.v1.PartnerProvidedIdData) data_; + } + return com.google.ads.datamanager.v1.PartnerProvidedIdData.getDefaultInstance(); + } + public static final int CONSENT_FIELD_NUMBER = 3; private com.google.ads.datamanager.v1.Consent consent_; @@ -645,6 +760,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataCase_ == 8) { output.writeMessage(8, (com.google.ads.datamanager.v1.CompositeData) data_); } + if (dataCase_ == 9) { + output.writeMessage(9, (com.google.ads.datamanager.v1.GoogleUserIdData) data_); + } + if (dataCase_ == 10) { + output.writeMessage(10, (com.google.ads.datamanager.v1.PartnerProvidedIdData) data_); + } getUnknownFields().writeTo(output); } @@ -695,6 +816,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, (com.google.ads.datamanager.v1.CompositeData) data_); } + if (dataCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.ads.datamanager.v1.GoogleUserIdData) data_); + } + if (dataCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.ads.datamanager.v1.PartnerProvidedIdData) data_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -736,6 +867,12 @@ public boolean equals(final java.lang.Object obj) { case 8: if (!getCompositeData().equals(other.getCompositeData())) return false; break; + case 9: + if (!getGoogleUserIdData().equals(other.getGoogleUserIdData())) return false; + break; + case 10: + if (!getPartnerProvidedIdData().equals(other.getPartnerProvidedIdData())) return false; + break; case 0: default: } @@ -783,6 +920,14 @@ public int hashCode() { hash = (37 * hash) + COMPOSITE_DATA_FIELD_NUMBER; hash = (53 * hash) + getCompositeData().hashCode(); break; + case 9: + hash = (37 * hash) + GOOGLE_USER_ID_DATA_FIELD_NUMBER; + hash = (53 * hash) + getGoogleUserIdData().hashCode(); + break; + case 10: + hash = (37 * hash) + PARTNER_PROVIDED_ID_DATA_FIELD_NUMBER; + hash = (53 * hash) + getPartnerProvidedIdData().hashCode(); + break; case 0: default: } @@ -954,6 +1099,12 @@ public Builder clear() { if (compositeDataBuilder_ != null) { compositeDataBuilder_.clear(); } + if (googleUserIdDataBuilder_ != null) { + googleUserIdDataBuilder_.clear(); + } + if (partnerProvidedIdDataBuilder_ != null) { + partnerProvidedIdDataBuilder_.clear(); + } consent_ = null; if (consentBuilder_ != null) { consentBuilder_.dispose(); @@ -1003,7 +1154,7 @@ private void buildPartial0(com.google.ads.datamanager.v1.AudienceMember result) result.destinationReferences_ = destinationReferences_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.consent_ = consentBuilder_ == null ? consent_ : consentBuilder_.build(); to_bitField0_ |= 0x00000001; } @@ -1031,6 +1182,12 @@ private void buildPartialOneofs(com.google.ads.datamanager.v1.AudienceMember res if (dataCase_ == 8 && compositeDataBuilder_ != null) { result.data_ = compositeDataBuilder_.build(); } + if (dataCase_ == 9 && googleUserIdDataBuilder_ != null) { + result.data_ = googleUserIdDataBuilder_.build(); + } + if (dataCase_ == 10 && partnerProvidedIdDataBuilder_ != null) { + result.data_ = partnerProvidedIdDataBuilder_.build(); + } } @java.lang.Override @@ -1089,6 +1246,16 @@ public Builder mergeFrom(com.google.ads.datamanager.v1.AudienceMember other) { mergeCompositeData(other.getCompositeData()); break; } + case GOOGLE_USER_ID_DATA: + { + mergeGoogleUserIdData(other.getGoogleUserIdData()); + break; + } + case PARTNER_PROVIDED_ID_DATA: + { + mergePartnerProvidedIdData(other.getPartnerProvidedIdData()); + break; + } case DATA_NOT_SET: { break; @@ -1137,7 +1304,7 @@ public Builder mergeFrom( case 26: { input.readMessage(internalGetConsentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 26 case 34: @@ -1175,6 +1342,20 @@ public Builder mergeFrom( dataCase_ = 8; break; } // case 66 + case 74: + { + input.readMessage( + internalGetGoogleUserIdDataFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetPartnerProvidedIdDataFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 10; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2770,6 +2951,446 @@ public com.google.ads.datamanager.v1.CompositeDataOrBuilder getCompositeDataOrBu return compositeDataBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.GoogleUserIdData, + com.google.ads.datamanager.v1.GoogleUserIdData.Builder, + com.google.ads.datamanager.v1.GoogleUserIdDataOrBuilder> + googleUserIdDataBuilder_; + + /** + * + * + *
+     * Encrypted Google User IDs.
+     * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + * + * @return Whether the googleUserIdData field is set. + */ + @java.lang.Override + public boolean hasGoogleUserIdData() { + return dataCase_ == 9; + } + + /** + * + * + *
+     * Encrypted Google User IDs.
+     * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + * + * @return The googleUserIdData. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.GoogleUserIdData getGoogleUserIdData() { + if (googleUserIdDataBuilder_ == null) { + if (dataCase_ == 9) { + return (com.google.ads.datamanager.v1.GoogleUserIdData) data_; + } + return com.google.ads.datamanager.v1.GoogleUserIdData.getDefaultInstance(); + } else { + if (dataCase_ == 9) { + return googleUserIdDataBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.GoogleUserIdData.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Encrypted Google User IDs.
+     * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + */ + public Builder setGoogleUserIdData(com.google.ads.datamanager.v1.GoogleUserIdData value) { + if (googleUserIdDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + googleUserIdDataBuilder_.setMessage(value); + } + dataCase_ = 9; + return this; + } + + /** + * + * + *
+     * Encrypted Google User IDs.
+     * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + */ + public Builder setGoogleUserIdData( + com.google.ads.datamanager.v1.GoogleUserIdData.Builder builderForValue) { + if (googleUserIdDataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + googleUserIdDataBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 9; + return this; + } + + /** + * + * + *
+     * Encrypted Google User IDs.
+     * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + */ + public Builder mergeGoogleUserIdData(com.google.ads.datamanager.v1.GoogleUserIdData value) { + if (googleUserIdDataBuilder_ == null) { + if (dataCase_ == 9 + && data_ != com.google.ads.datamanager.v1.GoogleUserIdData.getDefaultInstance()) { + data_ = + com.google.ads.datamanager.v1.GoogleUserIdData.newBuilder( + (com.google.ads.datamanager.v1.GoogleUserIdData) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 9) { + googleUserIdDataBuilder_.mergeFrom(value); + } else { + googleUserIdDataBuilder_.setMessage(value); + } + } + dataCase_ = 9; + return this; + } + + /** + * + * + *
+     * Encrypted Google User IDs.
+     * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + */ + public Builder clearGoogleUserIdData() { + if (googleUserIdDataBuilder_ == null) { + if (dataCase_ == 9) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 9) { + dataCase_ = 0; + data_ = null; + } + googleUserIdDataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Encrypted Google User IDs.
+     * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + */ + public com.google.ads.datamanager.v1.GoogleUserIdData.Builder getGoogleUserIdDataBuilder() { + return internalGetGoogleUserIdDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Encrypted Google User IDs.
+     * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.GoogleUserIdDataOrBuilder getGoogleUserIdDataOrBuilder() { + if ((dataCase_ == 9) && (googleUserIdDataBuilder_ != null)) { + return googleUserIdDataBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 9) { + return (com.google.ads.datamanager.v1.GoogleUserIdData) data_; + } + return com.google.ads.datamanager.v1.GoogleUserIdData.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Encrypted Google User IDs.
+     * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.GoogleUserIdData, + com.google.ads.datamanager.v1.GoogleUserIdData.Builder, + com.google.ads.datamanager.v1.GoogleUserIdDataOrBuilder> + internalGetGoogleUserIdDataFieldBuilder() { + if (googleUserIdDataBuilder_ == null) { + if (!(dataCase_ == 9)) { + data_ = com.google.ads.datamanager.v1.GoogleUserIdData.getDefaultInstance(); + } + googleUserIdDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.GoogleUserIdData, + com.google.ads.datamanager.v1.GoogleUserIdData.Builder, + com.google.ads.datamanager.v1.GoogleUserIdDataOrBuilder>( + (com.google.ads.datamanager.v1.GoogleUserIdData) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 9; + onChanged(); + return googleUserIdDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.PartnerProvidedIdData, + com.google.ads.datamanager.v1.PartnerProvidedIdData.Builder, + com.google.ads.datamanager.v1.PartnerProvidedIdDataOrBuilder> + partnerProvidedIdDataBuilder_; + + /** + * + * + *
+     * Partner-provided identifiers.
+     * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + * + * @return Whether the partnerProvidedIdData field is set. + */ + @java.lang.Override + public boolean hasPartnerProvidedIdData() { + return dataCase_ == 10; + } + + /** + * + * + *
+     * Partner-provided identifiers.
+     * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + * + * @return The partnerProvidedIdData. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerProvidedIdData getPartnerProvidedIdData() { + if (partnerProvidedIdDataBuilder_ == null) { + if (dataCase_ == 10) { + return (com.google.ads.datamanager.v1.PartnerProvidedIdData) data_; + } + return com.google.ads.datamanager.v1.PartnerProvidedIdData.getDefaultInstance(); + } else { + if (dataCase_ == 10) { + return partnerProvidedIdDataBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.PartnerProvidedIdData.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Partner-provided identifiers.
+     * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + */ + public Builder setPartnerProvidedIdData( + com.google.ads.datamanager.v1.PartnerProvidedIdData value) { + if (partnerProvidedIdDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + partnerProvidedIdDataBuilder_.setMessage(value); + } + dataCase_ = 10; + return this; + } + + /** + * + * + *
+     * Partner-provided identifiers.
+     * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + */ + public Builder setPartnerProvidedIdData( + com.google.ads.datamanager.v1.PartnerProvidedIdData.Builder builderForValue) { + if (partnerProvidedIdDataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + partnerProvidedIdDataBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 10; + return this; + } + + /** + * + * + *
+     * Partner-provided identifiers.
+     * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + */ + public Builder mergePartnerProvidedIdData( + com.google.ads.datamanager.v1.PartnerProvidedIdData value) { + if (partnerProvidedIdDataBuilder_ == null) { + if (dataCase_ == 10 + && data_ != com.google.ads.datamanager.v1.PartnerProvidedIdData.getDefaultInstance()) { + data_ = + com.google.ads.datamanager.v1.PartnerProvidedIdData.newBuilder( + (com.google.ads.datamanager.v1.PartnerProvidedIdData) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 10) { + partnerProvidedIdDataBuilder_.mergeFrom(value); + } else { + partnerProvidedIdDataBuilder_.setMessage(value); + } + } + dataCase_ = 10; + return this; + } + + /** + * + * + *
+     * Partner-provided identifiers.
+     * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + */ + public Builder clearPartnerProvidedIdData() { + if (partnerProvidedIdDataBuilder_ == null) { + if (dataCase_ == 10) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 10) { + dataCase_ = 0; + data_ = null; + } + partnerProvidedIdDataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Partner-provided identifiers.
+     * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + */ + public com.google.ads.datamanager.v1.PartnerProvidedIdData.Builder + getPartnerProvidedIdDataBuilder() { + return internalGetPartnerProvidedIdDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Partner-provided identifiers.
+     * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerProvidedIdDataOrBuilder + getPartnerProvidedIdDataOrBuilder() { + if ((dataCase_ == 10) && (partnerProvidedIdDataBuilder_ != null)) { + return partnerProvidedIdDataBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 10) { + return (com.google.ads.datamanager.v1.PartnerProvidedIdData) data_; + } + return com.google.ads.datamanager.v1.PartnerProvidedIdData.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Partner-provided identifiers.
+     * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.PartnerProvidedIdData, + com.google.ads.datamanager.v1.PartnerProvidedIdData.Builder, + com.google.ads.datamanager.v1.PartnerProvidedIdDataOrBuilder> + internalGetPartnerProvidedIdDataFieldBuilder() { + if (partnerProvidedIdDataBuilder_ == null) { + if (!(dataCase_ == 10)) { + data_ = com.google.ads.datamanager.v1.PartnerProvidedIdData.getDefaultInstance(); + } + partnerProvidedIdDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.PartnerProvidedIdData, + com.google.ads.datamanager.v1.PartnerProvidedIdData.Builder, + com.google.ads.datamanager.v1.PartnerProvidedIdDataOrBuilder>( + (com.google.ads.datamanager.v1.PartnerProvidedIdData) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 10; + onChanged(); + return partnerProvidedIdDataBuilder_; + } + private com.google.ads.datamanager.v1.Consent consent_; private com.google.protobuf.SingleFieldBuilder< com.google.ads.datamanager.v1.Consent, @@ -2791,7 +3412,7 @@ public com.google.ads.datamanager.v1.CompositeDataOrBuilder getCompositeDataOrBu * @return Whether the consent field is set. */ public boolean hasConsent() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -2837,7 +3458,7 @@ public Builder setConsent(com.google.ads.datamanager.v1.Consent value) { } else { consentBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2859,7 +3480,7 @@ public Builder setConsent(com.google.ads.datamanager.v1.Consent.Builder builderF } else { consentBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2877,7 +3498,7 @@ public Builder setConsent(com.google.ads.datamanager.v1.Consent.Builder builderF */ public Builder mergeConsent(com.google.ads.datamanager.v1.Consent value) { if (consentBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000200) != 0) && consent_ != null && consent_ != com.google.ads.datamanager.v1.Consent.getDefaultInstance()) { getConsentBuilder().mergeFrom(value); @@ -2888,7 +3509,7 @@ public Builder mergeConsent(com.google.ads.datamanager.v1.Consent value) { consentBuilder_.mergeFrom(value); } if (consent_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -2906,7 +3527,7 @@ public Builder mergeConsent(com.google.ads.datamanager.v1.Consent value) { * */ public Builder clearConsent() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000200); consent_ = null; if (consentBuilder_ != null) { consentBuilder_.dispose(); @@ -2928,7 +3549,7 @@ public Builder clearConsent() { * */ public com.google.ads.datamanager.v1.Consent.Builder getConsentBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; onChanged(); return internalGetConsentFieldBuilder().getBuilder(); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceMemberOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceMemberOrBuilder.java index 2966eccba845..4c6b5ad6abbe 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceMemberOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceMemberOrBuilder.java @@ -332,6 +332,80 @@ public interface AudienceMemberOrBuilder */ com.google.ads.datamanager.v1.CompositeDataOrBuilder getCompositeDataOrBuilder(); + /** + * + * + *
+   * Encrypted Google User IDs.
+   * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + * + * @return Whether the googleUserIdData field is set. + */ + boolean hasGoogleUserIdData(); + + /** + * + * + *
+   * Encrypted Google User IDs.
+   * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + * + * @return The googleUserIdData. + */ + com.google.ads.datamanager.v1.GoogleUserIdData getGoogleUserIdData(); + + /** + * + * + *
+   * Encrypted Google User IDs.
+   * 
+ * + * .google.ads.datamanager.v1.GoogleUserIdData google_user_id_data = 9; + */ + com.google.ads.datamanager.v1.GoogleUserIdDataOrBuilder getGoogleUserIdDataOrBuilder(); + + /** + * + * + *
+   * Partner-provided identifiers.
+   * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + * + * @return Whether the partnerProvidedIdData field is set. + */ + boolean hasPartnerProvidedIdData(); + + /** + * + * + *
+   * Partner-provided identifiers.
+   * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + * + * @return The partnerProvidedIdData. + */ + com.google.ads.datamanager.v1.PartnerProvidedIdData getPartnerProvidedIdData(); + + /** + * + * + *
+   * Partner-provided identifiers.
+   * 
+ * + * .google.ads.datamanager.v1.PartnerProvidedIdData partner_provided_id_data = 10; + */ + com.google.ads.datamanager.v1.PartnerProvidedIdDataOrBuilder getPartnerProvidedIdDataOrBuilder(); + /** * * diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java index bc44ac791133..43f740911dad 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AudienceProto.java @@ -68,6 +68,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_datamanager_v1_IpData_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_ads_datamanager_v1_IpData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_GoogleUserIdData_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_GoogleUserIdData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -83,7 +91,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s/datamanager/v1/consent.proto\032)google/a" + "ds/datamanager/v1/user_data.proto\032\037googl" + "e/api/field_behavior.proto\032\033google/api/f" - + "ield_info.proto\032\037google/protobuf/timestamp.proto\"\346\003\n" + + "ield_info.proto\032\037google/protobuf/timestamp.proto\"\210\005\n" + "\016AudienceMember\022#\n" + "\026destination_references\030\001 \003(\tB\003\340A\001\0228\n" + "\tuser_data\030\002 \001(\0132#.google.ads.datamanager.v1.UserDataH\000\0228\n" @@ -92,7 +100,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014user_id_data\030\006 \001(\0132%.google.ads.datamanager.v1.UserIdDataH\000\0228\n" + "\tppid_data\030\007 \001(\0132#.google.ads.datamanager.v1.PpidDataH\000\022B\n" + "\016composite_data\030\010" - + " \001(\0132(.google.ads.datamanager.v1.CompositeDataH\000\0228\n" + + " \001(\0132(.google.ads.datamanager.v1.CompositeDataH\000\022J\n" + + "\023google_user_id_data\030\t" + + " \001(\0132+.google.ads.datamanager.v1.GoogleUserIdDataH\000\022T\n" + + "\030partner_provided_id_data\030\n" + + " \001(\01320.google.ads.datamanager.v1.PartnerProvidedIdDataH\000\0228\n" + "\007consent\030\003" + " \001(\0132\".google.ads.datamanager.v1.ConsentB\003\340A\001B\006\n" + "\004data\"!\n" @@ -105,8 +117,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010PpidData\022\022\n" + "\005ppids\030\001 \003(\tB\003\340A\002\"\205\001\n\r" + "CompositeData\022;\n" - + "\tuser_data\030\001 \001(\0132#.g" - + "oogle.ads.datamanager.v1.UserDataB\003\340A\001\0227\n" + + "\tuser_data\030\001 \001(\0132#" + + ".google.ads.datamanager.v1.UserDataB\003\340A\001\0227\n" + "\007ip_data\030\002" + " \003(\0132!.google.ads.datamanager.v1.IpDataB\003\340A\001\"\241\001\n" + "\006IpData\022\037\n\n" @@ -114,12 +126,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022observe_start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0229\n" + "\020observe_end_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001B\312\001\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"0\n" + + "\020GoogleUserIdData\022\034\n" + + "\017google_user_ids\030\001 \003(\tB\003\340A\002\":\n" + + "\025PartnerProvidedIdData\022!\n" + + "\024partner_provided_ids\030\001 \003(\tB\003\340A\002B\312\001\n" + "\035com.google.ads.datamanager.v1B\r" - + "AudienceProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanage" - + "rpb;datamanagerpb\252\002\031Google.Ads.DataManag" - + "er.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Goog" - + "le::Ads::DataManager::V1b\006proto3" + + "AudienceProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;data" + + "managerpb\252\002\031Google.Ads.DataManager.V1\312\002\031" + + "Google\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -144,6 +159,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserIdData", "PpidData", "CompositeData", + "GoogleUserIdData", + "PartnerProvidedIdData", "Consent", "Data", }); @@ -194,6 +211,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "IpAddress", "ObserveStartTime", "ObserveEndTime", }); + internal_static_google_ads_datamanager_v1_GoogleUserIdData_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_ads_datamanager_v1_GoogleUserIdData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_GoogleUserIdData_descriptor, + new java.lang.String[] { + "GoogleUserIds", + }); + internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_descriptor, + new java.lang.String[] { + "PartnerProvidedIds", + }); descriptor.resolveAllFeaturesImmutable(); com.google.ads.datamanager.v1.ConsentProto.getDescriptor(); com.google.ads.datamanager.v1.UserDataProto.getDescriptor(); diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java index 52826fc091aa..fc82bd54743d 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java @@ -141,7 +141,8 @@ public com.google.protobuf.ByteString getUserAgentBytes() { * * *
-   * Optional. The IP address of the device for the given context.
+   * Optional. The IP address of the device for the given context. Required when
+   * used in an [AdEvent][google.ads.datamanager.v1.AdEvent].
    *
    * **Note:** Google Ads does not support IP address matching for end users in
    * the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).
@@ -177,7 +178,8 @@ public java.lang.String getIpAddress() {
    *
    *
    * 
-   * Optional. The IP address of the device for the given context.
+   * Optional. The IP address of the device for the given context. Required when
+   * used in an [AdEvent][google.ads.datamanager.v1.AdEvent].
    *
    * **Note:** Google Ads does not support IP address matching for end users in
    * the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).
@@ -1358,7 +1360,8 @@ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. The IP address of the device for the given context.
+     * Optional. The IP address of the device for the given context. Required when
+     * used in an [AdEvent][google.ads.datamanager.v1.AdEvent].
      *
      * **Note:** Google Ads does not support IP address matching for end users in
      * the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).
@@ -1393,7 +1396,8 @@ public java.lang.String getIpAddress() {
      *
      *
      * 
-     * Optional. The IP address of the device for the given context.
+     * Optional. The IP address of the device for the given context. Required when
+     * used in an [AdEvent][google.ads.datamanager.v1.AdEvent].
      *
      * **Note:** Google Ads does not support IP address matching for end users in
      * the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).
@@ -1428,7 +1432,8 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
      *
      *
      * 
-     * Optional. The IP address of the device for the given context.
+     * Optional. The IP address of the device for the given context. Required when
+     * used in an [AdEvent][google.ads.datamanager.v1.AdEvent].
      *
      * **Note:** Google Ads does not support IP address matching for end users in
      * the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).
@@ -1462,7 +1467,8 @@ public Builder setIpAddress(java.lang.String value) {
      *
      *
      * 
-     * Optional. The IP address of the device for the given context.
+     * Optional. The IP address of the device for the given context. Required when
+     * used in an [AdEvent][google.ads.datamanager.v1.AdEvent].
      *
      * **Note:** Google Ads does not support IP address matching for end users in
      * the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).
@@ -1492,7 +1498,8 @@ public Builder clearIpAddress() {
      *
      *
      * 
-     * Optional. The IP address of the device for the given context.
+     * Optional. The IP address of the device for the given context. Required when
+     * used in an [AdEvent][google.ads.datamanager.v1.AdEvent].
      *
      * **Note:** Google Ads does not support IP address matching for end users in
      * the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java
index e9aaad4963a0..4ce5958bbb63 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java
@@ -56,7 +56,8 @@ public interface DeviceInfoOrBuilder
    *
    *
    * 
-   * Optional. The IP address of the device for the given context.
+   * Optional. The IP address of the device for the given context. Required when
+   * used in an [AdEvent][google.ads.datamanager.v1.AdEvent].
    *
    * **Note:** Google Ads does not support IP address matching for end users in
    * the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).
@@ -81,7 +82,8 @@ public interface DeviceInfoOrBuilder
    *
    *
    * 
-   * Optional. The IP address of the device for the given context.
+   * Optional. The IP address of the device for the given context. Required when
+   * used in an [AdEvent][google.ads.datamanager.v1.AdEvent].
    *
    * **Note:** Google Ads does not support IP address matching for end users in
    * the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH).
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java
index 80dc8d9f9190..d6c862c2b11e 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorProto.java
@@ -49,7 +49,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
   static {
     java.lang.String[] descriptorData = {
       "\n%google/ads/datamanager/v1/error.proto\022"
-          + "\031google.ads.datamanager.v1*\373!\n\013ErrorReas"
+          + "\031google.ads.datamanager.v1*\302\"\n\013ErrorReas"
           + "on\022\034\n\030ERROR_REASON_UNSPECIFIED\020\000\022\022\n\016INTE"
           + "RNAL_ERROR\020\001\022\025\n\021DEADLINE_EXCEEDED\020\002\022\026\n\022R"
           + "ESOURCE_EXHAUSTED\020\003\022\r\n\tNOT_FOUND\020\004\022\025\n\021PE"
@@ -158,12 +158,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "_CUSTOM_VARIABLE_VALUE\020w\022\035\n\031CUSTOM_VARIA"
           + "BLE_NOT_FOUND\020x\022+\n\'BASELINE_LOCATION_AUT"
           + "O_DETECTION_FAILED\020z\022\"\n\036INSIGHTS_MISSING"
-          + "_FOR_DIMENSION\020{B\307\001\n\035com.google.ads.data"
-          + "manager.v1B\nErrorProtoP\001ZAcloud.google.c"
-          + "om/go/datamanager/apiv1/datamanagerpb;da"
-          + "tamanagerpb\252\002\031Google.Ads.DataManager.V1\312"
-          + "\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ad"
-          + "s::DataManager::V1b\006proto3"
+          + "_FOR_DIMENSION\020{\022&\n\"REQUIRED_PREREQUISIT"
+          + "E_LINK_MISSING\020|\022\035\n\031INVALID_REMOVE_AS_OF"
+          + "_TIME\020}B\307\001\n\035com.google.ads.datamanager.v"
+          + "1B\nErrorProtoP\001ZAcloud.google.com/go/dat"
+          + "amanager/apiv1/datamanagerpb;datamanager"
+          + "pb\252\002\031Google.Ads.DataManager.V1\312\002\031Google\\"
+          + "Ads\\DataManager\\V1\352\002\034Google::Ads::DataMa"
+          + "nager::V1b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java
index 6ee99e95e66b..814ded4e4954 100644
--- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java
+++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java
@@ -1284,6 +1284,28 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum {
    * INSIGHTS_MISSING_FOR_DIMENSION = 123;
    */
   INSIGHTS_MISSING_FOR_DIMENSION(123),
+  /**
+   *
+   *
+   * 
+   * A required prerequisite link (such as a Google Ads link) must exist for
+   * the Google Analytics property to perform this operation.
+   * 
+ * + * REQUIRED_PREREQUISITE_LINK_MISSING = 124; + */ + REQUIRED_PREREQUISITE_LINK_MISSING(124), + /** + * + * + *
+   * The remove as of time must be in the past or present. Future timestamps are
+   * not permitted for removing audience members.
+   * 
+ * + * INVALID_REMOVE_AS_OF_TIME = 125; + */ + INVALID_REMOVE_AS_OF_TIME(125), UNRECOGNIZED(-1), ; @@ -2671,6 +2693,30 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INSIGHTS_MISSING_FOR_DIMENSION_VALUE = 123; + /** + * + * + *
+   * A required prerequisite link (such as a Google Ads link) must exist for
+   * the Google Analytics property to perform this operation.
+   * 
+ * + * REQUIRED_PREREQUISITE_LINK_MISSING = 124; + */ + public static final int REQUIRED_PREREQUISITE_LINK_MISSING_VALUE = 124; + + /** + * + * + *
+   * The remove as of time must be in the past or present. Future timestamps are
+   * not permitted for removing audience members.
+   * 
+ * + * INVALID_REMOVE_AS_OF_TIME = 125; + */ + public static final int INVALID_REMOVE_AS_OF_TIME_VALUE = 125; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2941,6 +2987,10 @@ public static ErrorReason forNumber(int value) { return BASELINE_LOCATION_AUTO_DETECTION_FAILED; case 123: return INSIGHTS_MISSING_FOR_DIMENSION; + case 124: + return REQUIRED_PREREQUISITE_LINK_MISSING; + case 125: + return INVALID_REMOVE_AS_OF_TIME; default: return null; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FieldWarning.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FieldWarning.java new file mode 100644 index 000000000000..5386ec37ba75 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FieldWarning.java @@ -0,0 +1,948 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/processing_errors.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Detailed row-level warning with field paths.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.FieldWarning} + */ +@com.google.protobuf.Generated +public final class FieldWarning extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.FieldWarning) + FieldWarningOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FieldWarning"); + } + + // Use FieldWarning.newBuilder() to construct. + private FieldWarning(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FieldWarning() { + reason_ = 0; + description_ = ""; + field_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.ProcessingErrorsProto + .internal_static_google_ads_datamanager_v1_FieldWarning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.ProcessingErrorsProto + .internal_static_google_ads_datamanager_v1_FieldWarning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.FieldWarning.class, + com.google.ads.datamanager.v1.FieldWarning.Builder.class); + } + + public static final int REASON_FIELD_NUMBER = 1; + private int reason_ = 0; + + /** + * + * + *
+   * The warning reason.
+   * 
+ * + * .google.ads.datamanager.v1.WarningReason reason = 1; + * + * @return The enum numeric value on the wire for reason. + */ + @java.lang.Override + public int getReasonValue() { + return reason_; + } + + /** + * + * + *
+   * The warning reason.
+   * 
+ * + * .google.ads.datamanager.v1.WarningReason reason = 1; + * + * @return The reason. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.WarningReason getReason() { + com.google.ads.datamanager.v1.WarningReason result = + com.google.ads.datamanager.v1.WarningReason.forNumber(reason_); + return result == null ? com.google.ads.datamanager.v1.WarningReason.UNRECOGNIZED : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * The detailed warning message describing the issue.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
+   * The detailed warning message describing the issue.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIELD_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object field_ = ""; + + /** + * + * + *
+   * The field path that triggered the warning. Uses the same format as
+   * [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field].
+   * 
+ * + * string field = 3; + * + * @return The field. + */ + @java.lang.Override + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } + } + + /** + * + * + *
+   * The field path that triggered the warning. Uses the same format as
+   * [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field].
+   * 
+ * + * string field = 3; + * + * @return The bytes for field. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (reason_ + != com.google.ads.datamanager.v1.WarningReason.WARNING_REASON_UNSPECIFIED.getNumber()) { + output.writeEnum(1, reason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, field_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (reason_ + != com.google.ads.datamanager.v1.WarningReason.WARNING_REASON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, reason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, field_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.datamanager.v1.FieldWarning)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.FieldWarning other = + (com.google.ads.datamanager.v1.FieldWarning) obj; + + if (reason_ != other.reason_) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getField().equals(other.getField())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + reason_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.FieldWarning parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.FieldWarning prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Detailed row-level warning with field paths.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.FieldWarning} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.FieldWarning) + com.google.ads.datamanager.v1.FieldWarningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.ProcessingErrorsProto + .internal_static_google_ads_datamanager_v1_FieldWarning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.ProcessingErrorsProto + .internal_static_google_ads_datamanager_v1_FieldWarning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.FieldWarning.class, + com.google.ads.datamanager.v1.FieldWarning.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.FieldWarning.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reason_ = 0; + description_ = ""; + field_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.ProcessingErrorsProto + .internal_static_google_ads_datamanager_v1_FieldWarning_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.FieldWarning getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.FieldWarning.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.FieldWarning build() { + com.google.ads.datamanager.v1.FieldWarning result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.FieldWarning buildPartial() { + com.google.ads.datamanager.v1.FieldWarning result = + new com.google.ads.datamanager.v1.FieldWarning(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.FieldWarning result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reason_ = reason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.field_ = field_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.FieldWarning) { + return mergeFrom((com.google.ads.datamanager.v1.FieldWarning) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.FieldWarning other) { + if (other == com.google.ads.datamanager.v1.FieldWarning.getDefaultInstance()) return this; + if (other.reason_ != 0) { + setReasonValue(other.getReasonValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getField().isEmpty()) { + field_ = other.field_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + reason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + field_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int reason_ = 0; + + /** + * + * + *
+     * The warning reason.
+     * 
+ * + * .google.ads.datamanager.v1.WarningReason reason = 1; + * + * @return The enum numeric value on the wire for reason. + */ + @java.lang.Override + public int getReasonValue() { + return reason_; + } + + /** + * + * + *
+     * The warning reason.
+     * 
+ * + * .google.ads.datamanager.v1.WarningReason reason = 1; + * + * @param value The enum numeric value on the wire for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonValue(int value) { + reason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The warning reason.
+     * 
+ * + * .google.ads.datamanager.v1.WarningReason reason = 1; + * + * @return The reason. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.WarningReason getReason() { + com.google.ads.datamanager.v1.WarningReason result = + com.google.ads.datamanager.v1.WarningReason.forNumber(reason_); + return result == null ? com.google.ads.datamanager.v1.WarningReason.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * The warning reason.
+     * 
+ * + * .google.ads.datamanager.v1.WarningReason reason = 1; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(com.google.ads.datamanager.v1.WarningReason value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + reason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The warning reason.
+     * 
+ * + * .google.ads.datamanager.v1.WarningReason reason = 1; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + bitField0_ = (bitField0_ & ~0x00000001); + reason_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * The detailed warning message describing the issue.
+     * 
+ * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The detailed warning message describing the issue.
+     * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The detailed warning message describing the issue.
+     * 
+ * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The detailed warning message describing the issue.
+     * 
+ * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The detailed warning message describing the issue.
+     * 
+ * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object field_ = ""; + + /** + * + * + *
+     * The field path that triggered the warning. Uses the same format as
+     * [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field].
+     * 
+ * + * string field = 3; + * + * @return The field. + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The field path that triggered the warning. Uses the same format as
+     * [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field].
+     * 
+ * + * string field = 3; + * + * @return The bytes for field. + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The field path that triggered the warning. Uses the same format as
+     * [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field].
+     * 
+ * + * string field = 3; + * + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The field path that triggered the warning. Uses the same format as
+     * [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field].
+     * 
+ * + * string field = 3; + * + * @return This builder for chaining. + */ + public Builder clearField() { + field_ = getDefaultInstance().getField(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The field path that triggered the warning. Uses the same format as
+     * [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field].
+     * 
+ * + * string field = 3; + * + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.FieldWarning) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.FieldWarning) + private static final com.google.ads.datamanager.v1.FieldWarning DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.FieldWarning(); + } + + public static com.google.ads.datamanager.v1.FieldWarning getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FieldWarning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.FieldWarning getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FieldWarningOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FieldWarningOrBuilder.java new file mode 100644 index 000000000000..dfff601797fb --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FieldWarningOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/processing_errors.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface FieldWarningOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.FieldWarning) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The warning reason.
+   * 
+ * + * .google.ads.datamanager.v1.WarningReason reason = 1; + * + * @return The enum numeric value on the wire for reason. + */ + int getReasonValue(); + + /** + * + * + *
+   * The warning reason.
+   * 
+ * + * .google.ads.datamanager.v1.WarningReason reason = 1; + * + * @return The reason. + */ + com.google.ads.datamanager.v1.WarningReason getReason(); + + /** + * + * + *
+   * The detailed warning message describing the issue.
+   * 
+ * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * The detailed warning message describing the issue.
+   * 
+ * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * The field path that triggered the warning. Uses the same format as
+   * [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field].
+   * 
+ * + * string field = 3; + * + * @return The field. + */ + java.lang.String getField(); + + /** + * + * + *
+   * The field path that triggered the warning. Uses the same format as
+   * [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field].
+   * 
+ * + * string field = 3; + * + * @return The bytes for field. + */ + com.google.protobuf.ByteString getFieldBytes(); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GoogleUserIdData.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GoogleUserIdData.java new file mode 100644 index 000000000000..dbab151496d2 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GoogleUserIdData.java @@ -0,0 +1,698 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/audience.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Google user id data holding encrypted google user IDs. At least one google
+ * user ID is required.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.GoogleUserIdData} + */ +@com.google.protobuf.Generated +public final class GoogleUserIdData extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.GoogleUserIdData) + GoogleUserIdDataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GoogleUserIdData"); + } + + // Use GoogleUserIdData.newBuilder() to construct. + private GoogleUserIdData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GoogleUserIdData() { + googleUserIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_GoogleUserIdData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_GoogleUserIdData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.GoogleUserIdData.class, + com.google.ads.datamanager.v1.GoogleUserIdData.Builder.class); + } + + public static final int GOOGLE_USER_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList googleUserIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The list of encrypted google user IDs.
+   * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the googleUserIds. + */ + public com.google.protobuf.ProtocolStringList getGoogleUserIdsList() { + return googleUserIds_; + } + + /** + * + * + *
+   * Required. The list of encrypted google user IDs.
+   * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of googleUserIds. + */ + public int getGoogleUserIdsCount() { + return googleUserIds_.size(); + } + + /** + * + * + *
+   * Required. The list of encrypted google user IDs.
+   * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The googleUserIds at the given index. + */ + public java.lang.String getGoogleUserIds(int index) { + return googleUserIds_.get(index); + } + + /** + * + * + *
+   * Required. The list of encrypted google user IDs.
+   * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the googleUserIds at the given index. + */ + public com.google.protobuf.ByteString getGoogleUserIdsBytes(int index) { + return googleUserIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < googleUserIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, googleUserIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < googleUserIds_.size(); i++) { + dataSize += computeStringSizeNoTag(googleUserIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getGoogleUserIdsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.datamanager.v1.GoogleUserIdData)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.GoogleUserIdData other = + (com.google.ads.datamanager.v1.GoogleUserIdData) obj; + + if (!getGoogleUserIdsList().equals(other.getGoogleUserIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getGoogleUserIdsCount() > 0) { + hash = (37 * hash) + GOOGLE_USER_IDS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleUserIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.GoogleUserIdData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Google user id data holding encrypted google user IDs. At least one google
+   * user ID is required.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.GoogleUserIdData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.GoogleUserIdData) + com.google.ads.datamanager.v1.GoogleUserIdDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_GoogleUserIdData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_GoogleUserIdData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.GoogleUserIdData.class, + com.google.ads.datamanager.v1.GoogleUserIdData.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.GoogleUserIdData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + googleUserIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_GoogleUserIdData_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.GoogleUserIdData getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.GoogleUserIdData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.GoogleUserIdData build() { + com.google.ads.datamanager.v1.GoogleUserIdData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.GoogleUserIdData buildPartial() { + com.google.ads.datamanager.v1.GoogleUserIdData result = + new com.google.ads.datamanager.v1.GoogleUserIdData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.GoogleUserIdData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + googleUserIds_.makeImmutable(); + result.googleUserIds_ = googleUserIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.GoogleUserIdData) { + return mergeFrom((com.google.ads.datamanager.v1.GoogleUserIdData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.GoogleUserIdData other) { + if (other == com.google.ads.datamanager.v1.GoogleUserIdData.getDefaultInstance()) return this; + if (!other.googleUserIds_.isEmpty()) { + if (googleUserIds_.isEmpty()) { + googleUserIds_ = other.googleUserIds_; + bitField0_ |= 0x00000001; + } else { + ensureGoogleUserIdsIsMutable(); + googleUserIds_.addAll(other.googleUserIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGoogleUserIdsIsMutable(); + googleUserIds_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList googleUserIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGoogleUserIdsIsMutable() { + if (!googleUserIds_.isModifiable()) { + googleUserIds_ = new com.google.protobuf.LazyStringArrayList(googleUserIds_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Required. The list of encrypted google user IDs.
+     * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the googleUserIds. + */ + public com.google.protobuf.ProtocolStringList getGoogleUserIdsList() { + googleUserIds_.makeImmutable(); + return googleUserIds_; + } + + /** + * + * + *
+     * Required. The list of encrypted google user IDs.
+     * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of googleUserIds. + */ + public int getGoogleUserIdsCount() { + return googleUserIds_.size(); + } + + /** + * + * + *
+     * Required. The list of encrypted google user IDs.
+     * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The googleUserIds at the given index. + */ + public java.lang.String getGoogleUserIds(int index) { + return googleUserIds_.get(index); + } + + /** + * + * + *
+     * Required. The list of encrypted google user IDs.
+     * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the googleUserIds at the given index. + */ + public com.google.protobuf.ByteString getGoogleUserIdsBytes(int index) { + return googleUserIds_.getByteString(index); + } + + /** + * + * + *
+     * Required. The list of encrypted google user IDs.
+     * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The googleUserIds to set. + * @return This builder for chaining. + */ + public Builder setGoogleUserIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGoogleUserIdsIsMutable(); + googleUserIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of encrypted google user IDs.
+     * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The googleUserIds to add. + * @return This builder for chaining. + */ + public Builder addGoogleUserIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGoogleUserIdsIsMutable(); + googleUserIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of encrypted google user IDs.
+     * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The googleUserIds to add. + * @return This builder for chaining. + */ + public Builder addAllGoogleUserIds(java.lang.Iterable values) { + ensureGoogleUserIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, googleUserIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of encrypted google user IDs.
+     * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGoogleUserIds() { + googleUserIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of encrypted google user IDs.
+     * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the googleUserIds to add. + * @return This builder for chaining. + */ + public Builder addGoogleUserIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGoogleUserIdsIsMutable(); + googleUserIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.GoogleUserIdData) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.GoogleUserIdData) + private static final com.google.ads.datamanager.v1.GoogleUserIdData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.GoogleUserIdData(); + } + + public static com.google.ads.datamanager.v1.GoogleUserIdData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleUserIdData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.GoogleUserIdData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GoogleUserIdDataOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GoogleUserIdDataOrBuilder.java new file mode 100644 index 000000000000..4833b11f5fdd --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/GoogleUserIdDataOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/audience.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface GoogleUserIdDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.GoogleUserIdData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The list of encrypted google user IDs.
+   * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the googleUserIds. + */ + java.util.List getGoogleUserIdsList(); + + /** + * + * + *
+   * Required. The list of encrypted google user IDs.
+   * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of googleUserIds. + */ + int getGoogleUserIdsCount(); + + /** + * + * + *
+   * Required. The list of encrypted google user IDs.
+   * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The googleUserIds at the given index. + */ + java.lang.String getGoogleUserIds(int index); + + /** + * + * + *
+   * Required. The list of encrypted google user IDs.
+   * 
+ * + * repeated string google_user_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the googleUserIds at the given index. + */ + com.google.protobuf.ByteString getGoogleUserIdsBytes(int index); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java index 617e4234d639..69233a8298c7 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java @@ -164,12 +164,12 @@ public com.google.ads.datamanager.v1.AdEventOrBuilder getAdEventsOrBuilder(int i * * *
-   * Optional. Information about encryption keys which are used to encrypt the
+   * Required. Information about encryption keys which are used to encrypt the
    * data.
    * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the encryptionInfo field is set. @@ -183,12 +183,12 @@ public boolean hasEncryptionInfo() { * * *
-   * Optional. Information about encryption keys which are used to encrypt the
+   * Required. Information about encryption keys which are used to encrypt the
    * data.
    * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The encryptionInfo. @@ -204,12 +204,12 @@ public com.google.ads.datamanager.v1.EncryptionInfo getEncryptionInfo() { * * *
-   * Optional. Information about encryption keys which are used to encrypt the
+   * Required. Information about encryption keys which are used to encrypt the
    * data.
    * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -229,11 +229,15 @@ public com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * Optional. If true, the request is validated, but not executed. *
* - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool validate_only = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.ads.datamanager.v1.IngestAdEventsRequest.validate_only is deprecated. See + * google/ads/datamanager/v1/ingestion_service.proto;l=278 * @return The validateOnly. */ @java.lang.Override + @java.lang.Deprecated public boolean getValidateOnly() { return validateOnly_; } @@ -1076,12 +1080,12 @@ public java.util.List getAdEvents * * *
-     * Optional. Information about encryption keys which are used to encrypt the
+     * Required. Information about encryption keys which are used to encrypt the
      * data.
      * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the encryptionInfo field is set. @@ -1094,12 +1098,12 @@ public boolean hasEncryptionInfo() { * * *
-     * Optional. Information about encryption keys which are used to encrypt the
+     * Required. Information about encryption keys which are used to encrypt the
      * data.
      * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The encryptionInfo. @@ -1118,12 +1122,12 @@ public com.google.ads.datamanager.v1.EncryptionInfo getEncryptionInfo() { * * *
-     * Optional. Information about encryption keys which are used to encrypt the
+     * Required. Information about encryption keys which are used to encrypt the
      * data.
      * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setEncryptionInfo(com.google.ads.datamanager.v1.EncryptionInfo value) { @@ -1144,12 +1148,12 @@ public Builder setEncryptionInfo(com.google.ads.datamanager.v1.EncryptionInfo va * * *
-     * Optional. Information about encryption keys which are used to encrypt the
+     * Required. Information about encryption keys which are used to encrypt the
      * data.
      * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setEncryptionInfo( @@ -1168,12 +1172,12 @@ public Builder setEncryptionInfo( * * *
-     * Optional. Information about encryption keys which are used to encrypt the
+     * Required. Information about encryption keys which are used to encrypt the
      * data.
      * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeEncryptionInfo(com.google.ads.datamanager.v1.EncryptionInfo value) { @@ -1200,12 +1204,12 @@ public Builder mergeEncryptionInfo(com.google.ads.datamanager.v1.EncryptionInfo * * *
-     * Optional. Information about encryption keys which are used to encrypt the
+     * Required. Information about encryption keys which are used to encrypt the
      * data.
      * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearEncryptionInfo() { @@ -1223,12 +1227,12 @@ public Builder clearEncryptionInfo() { * * *
-     * Optional. Information about encryption keys which are used to encrypt the
+     * Required. Information about encryption keys which are used to encrypt the
      * data.
      * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.ads.datamanager.v1.EncryptionInfo.Builder getEncryptionInfoBuilder() { @@ -1241,12 +1245,12 @@ public com.google.ads.datamanager.v1.EncryptionInfo.Builder getEncryptionInfoBui * * *
-     * Optional. Information about encryption keys which are used to encrypt the
+     * Required. Information about encryption keys which are used to encrypt the
      * data.
      * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { @@ -1263,12 +1267,12 @@ public com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * * *
-     * Optional. Information about encryption keys which are used to encrypt the
+     * Required. Information about encryption keys which are used to encrypt the
      * data.
      * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilder< @@ -1297,11 +1301,15 @@ public com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOr * Optional. If true, the request is validated, but not executed. *
* - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool validate_only = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.ads.datamanager.v1.IngestAdEventsRequest.validate_only is deprecated. See + * google/ads/datamanager/v1/ingestion_service.proto;l=278 * @return The validateOnly. */ @java.lang.Override + @java.lang.Deprecated public boolean getValidateOnly() { return validateOnly_; } @@ -1313,11 +1321,15 @@ public boolean getValidateOnly() { * Optional. If true, the request is validated, but not executed. *
* - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool validate_only = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.ads.datamanager.v1.IngestAdEventsRequest.validate_only is deprecated. See + * google/ads/datamanager/v1/ingestion_service.proto;l=278 * @param value The validateOnly to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setValidateOnly(boolean value) { validateOnly_ = value; @@ -1333,10 +1345,14 @@ public Builder setValidateOnly(boolean value) { * Optional. If true, the request is validated, but not executed. *
* - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool validate_only = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.ads.datamanager.v1.IngestAdEventsRequest.validate_only is deprecated. See + * google/ads/datamanager/v1/ingestion_service.proto;l=278 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearValidateOnly() { bitField0_ = (bitField0_ & ~0x00000004); validateOnly_ = false; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java index f16a40fdddac..89538e9bef8b 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java @@ -96,12 +96,12 @@ public interface IngestAdEventsRequestOrBuilder * * *
-   * Optional. Information about encryption keys which are used to encrypt the
+   * Required. Information about encryption keys which are used to encrypt the
    * data.
    * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the encryptionInfo field is set. @@ -112,12 +112,12 @@ public interface IngestAdEventsRequestOrBuilder * * *
-   * Optional. Information about encryption keys which are used to encrypt the
+   * Required. Information about encryption keys which are used to encrypt the
    * data.
    * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The encryptionInfo. @@ -128,12 +128,12 @@ public interface IngestAdEventsRequestOrBuilder * * *
-   * Optional. Information about encryption keys which are used to encrypt the
+   * Required. Information about encryption keys which are used to encrypt the
    * data.
    * 
* * - * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder(); @@ -145,9 +145,13 @@ public interface IngestAdEventsRequestOrBuilder * Optional. If true, the request is validated, but not executed. *
* - * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool validate_only = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.ads.datamanager.v1.IngestAdEventsRequest.validate_only is deprecated. See + * google/ads/datamanager/v1/ingestion_service.proto;l=278 * @return The validateOnly. */ + @java.lang.Deprecated boolean getValidateOnly(); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAudienceMembersResponse.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAudienceMembersResponse.java index e9e01319e1af..dd4271e8c975 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAudienceMembersResponse.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAudienceMembersResponse.java @@ -54,6 +54,7 @@ private IngestAudienceMembersResponse(com.google.protobuf.GeneratedMessage.Build private IngestAudienceMembersResponse() { requestId_ = ""; + fieldWarnings_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -124,6 +125,82 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int FIELD_WARNINGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List fieldWarnings_; + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public java.util.List getFieldWarningsList() { + return fieldWarnings_; + } + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public java.util.List + getFieldWarningsOrBuilderList() { + return fieldWarnings_; + } + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public int getFieldWarningsCount() { + return fieldWarnings_.size(); + } + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.FieldWarning getFieldWarnings(int index) { + return fieldWarnings_.get(index); + } + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.FieldWarningOrBuilder getFieldWarningsOrBuilder(int index) { + return fieldWarnings_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -141,6 +218,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, requestId_); } + for (int i = 0; i < fieldWarnings_.size(); i++) { + output.writeMessage(2, fieldWarnings_.get(i)); + } getUnknownFields().writeTo(output); } @@ -153,6 +233,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, requestId_); } + for (int i = 0; i < fieldWarnings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, fieldWarnings_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -170,6 +253,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.ads.datamanager.v1.IngestAudienceMembersResponse) obj; if (!getRequestId().equals(other.getRequestId())) return false; + if (!getFieldWarningsList().equals(other.getFieldWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,6 +267,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + if (getFieldWarningsCount() > 0) { + hash = (37 * hash) + FIELD_WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getFieldWarningsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -326,6 +414,13 @@ public Builder clear() { super.clear(); bitField0_ = 0; requestId_ = ""; + if (fieldWarningsBuilder_ == null) { + fieldWarnings_ = java.util.Collections.emptyList(); + } else { + fieldWarnings_ = null; + fieldWarningsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -353,6 +448,7 @@ public com.google.ads.datamanager.v1.IngestAudienceMembersResponse build() { public com.google.ads.datamanager.v1.IngestAudienceMembersResponse buildPartial() { com.google.ads.datamanager.v1.IngestAudienceMembersResponse result = new com.google.ads.datamanager.v1.IngestAudienceMembersResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -360,6 +456,19 @@ public com.google.ads.datamanager.v1.IngestAudienceMembersResponse buildPartial( return result; } + private void buildPartialRepeatedFields( + com.google.ads.datamanager.v1.IngestAudienceMembersResponse result) { + if (fieldWarningsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + fieldWarnings_ = java.util.Collections.unmodifiableList(fieldWarnings_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.fieldWarnings_ = fieldWarnings_; + } else { + result.fieldWarnings_ = fieldWarningsBuilder_.build(); + } + } + private void buildPartial0(com.google.ads.datamanager.v1.IngestAudienceMembersResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -385,6 +494,33 @@ public Builder mergeFrom(com.google.ads.datamanager.v1.IngestAudienceMembersResp bitField0_ |= 0x00000001; onChanged(); } + if (fieldWarningsBuilder_ == null) { + if (!other.fieldWarnings_.isEmpty()) { + if (fieldWarnings_.isEmpty()) { + fieldWarnings_ = other.fieldWarnings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFieldWarningsIsMutable(); + fieldWarnings_.addAll(other.fieldWarnings_); + } + onChanged(); + } + } else { + if (!other.fieldWarnings_.isEmpty()) { + if (fieldWarningsBuilder_.isEmpty()) { + fieldWarningsBuilder_.dispose(); + fieldWarningsBuilder_ = null; + fieldWarnings_ = other.fieldWarnings_; + bitField0_ = (bitField0_ & ~0x00000002); + fieldWarningsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFieldWarningsFieldBuilder() + : null; + } else { + fieldWarningsBuilder_.addAllMessages(other.fieldWarnings_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -417,6 +553,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + com.google.ads.datamanager.v1.FieldWarning m = + input.readMessage( + com.google.ads.datamanager.v1.FieldWarning.parser(), extensionRegistry); + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(m); + } else { + fieldWarningsBuilder_.addMessage(m); + } + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -547,6 +696,378 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List fieldWarnings_ = + java.util.Collections.emptyList(); + + private void ensureFieldWarningsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + fieldWarnings_ = + new java.util.ArrayList(fieldWarnings_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.FieldWarning, + com.google.ads.datamanager.v1.FieldWarning.Builder, + com.google.ads.datamanager.v1.FieldWarningOrBuilder> + fieldWarningsBuilder_; + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public java.util.List getFieldWarningsList() { + if (fieldWarningsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fieldWarnings_); + } else { + return fieldWarningsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public int getFieldWarningsCount() { + if (fieldWarningsBuilder_ == null) { + return fieldWarnings_.size(); + } else { + return fieldWarningsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarning getFieldWarnings(int index) { + if (fieldWarningsBuilder_ == null) { + return fieldWarnings_.get(index); + } else { + return fieldWarningsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder setFieldWarnings(int index, com.google.ads.datamanager.v1.FieldWarning value) { + if (fieldWarningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldWarningsIsMutable(); + fieldWarnings_.set(index, value); + onChanged(); + } else { + fieldWarningsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder setFieldWarnings( + int index, com.google.ads.datamanager.v1.FieldWarning.Builder builderForValue) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldWarningsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addFieldWarnings(com.google.ads.datamanager.v1.FieldWarning value) { + if (fieldWarningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(value); + onChanged(); + } else { + fieldWarningsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addFieldWarnings(int index, com.google.ads.datamanager.v1.FieldWarning value) { + if (fieldWarningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(index, value); + onChanged(); + } else { + fieldWarningsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addFieldWarnings( + com.google.ads.datamanager.v1.FieldWarning.Builder builderForValue) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(builderForValue.build()); + onChanged(); + } else { + fieldWarningsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addFieldWarnings( + int index, com.google.ads.datamanager.v1.FieldWarning.Builder builderForValue) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldWarningsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addAllFieldWarnings( + java.lang.Iterable values) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldWarnings_); + onChanged(); + } else { + fieldWarningsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder clearFieldWarnings() { + if (fieldWarningsBuilder_ == null) { + fieldWarnings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + fieldWarningsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder removeFieldWarnings(int index) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.remove(index); + onChanged(); + } else { + fieldWarningsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarning.Builder getFieldWarningsBuilder(int index) { + return internalGetFieldWarningsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarningOrBuilder getFieldWarningsOrBuilder( + int index) { + if (fieldWarningsBuilder_ == null) { + return fieldWarnings_.get(index); + } else { + return fieldWarningsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public java.util.List + getFieldWarningsOrBuilderList() { + if (fieldWarningsBuilder_ != null) { + return fieldWarningsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fieldWarnings_); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarning.Builder addFieldWarningsBuilder() { + return internalGetFieldWarningsFieldBuilder() + .addBuilder(com.google.ads.datamanager.v1.FieldWarning.getDefaultInstance()); + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarning.Builder addFieldWarningsBuilder(int index) { + return internalGetFieldWarningsFieldBuilder() + .addBuilder(index, com.google.ads.datamanager.v1.FieldWarning.getDefaultInstance()); + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public java.util.List + getFieldWarningsBuilderList() { + return internalGetFieldWarningsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.FieldWarning, + com.google.ads.datamanager.v1.FieldWarning.Builder, + com.google.ads.datamanager.v1.FieldWarningOrBuilder> + internalGetFieldWarningsFieldBuilder() { + if (fieldWarningsBuilder_ == null) { + fieldWarningsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.FieldWarning, + com.google.ads.datamanager.v1.FieldWarning.Builder, + com.google.ads.datamanager.v1.FieldWarningOrBuilder>( + fieldWarnings_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + fieldWarnings_ = null; + } + return fieldWarningsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.IngestAudienceMembersResponse) } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAudienceMembersResponseOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAudienceMembersResponseOrBuilder.java index 29271b40cbf6..65673a718d76 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAudienceMembersResponseOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAudienceMembersResponseOrBuilder.java @@ -51,4 +51,60 @@ public interface IngestAudienceMembersResponseOrBuilder * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + java.util.List getFieldWarningsList(); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + com.google.ads.datamanager.v1.FieldWarning getFieldWarnings(int index); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + int getFieldWarningsCount(); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + java.util.List + getFieldWarningsOrBuilderList(); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + com.google.ads.datamanager.v1.FieldWarningOrBuilder getFieldWarningsOrBuilder(int index); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestEventsResponse.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestEventsResponse.java index 37297cc2806a..03abe947d37a 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestEventsResponse.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestEventsResponse.java @@ -54,6 +54,7 @@ private IngestEventsResponse(com.google.protobuf.GeneratedMessage.Builder bui private IngestEventsResponse() { requestId_ = ""; + fieldWarnings_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -124,6 +125,82 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } + public static final int FIELD_WARNINGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List fieldWarnings_; + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public java.util.List getFieldWarningsList() { + return fieldWarnings_; + } + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public java.util.List + getFieldWarningsOrBuilderList() { + return fieldWarnings_; + } + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public int getFieldWarningsCount() { + return fieldWarnings_.size(); + } + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.FieldWarning getFieldWarnings(int index) { + return fieldWarnings_.get(index); + } + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.FieldWarningOrBuilder getFieldWarningsOrBuilder(int index) { + return fieldWarnings_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -141,6 +218,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, requestId_); } + for (int i = 0; i < fieldWarnings_.size(); i++) { + output.writeMessage(2, fieldWarnings_.get(i)); + } getUnknownFields().writeTo(output); } @@ -153,6 +233,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, requestId_); } + for (int i = 0; i < fieldWarnings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, fieldWarnings_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -170,6 +253,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.ads.datamanager.v1.IngestEventsResponse) obj; if (!getRequestId().equals(other.getRequestId())) return false; + if (!getFieldWarningsList().equals(other.getFieldWarningsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,6 +267,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + if (getFieldWarningsCount() > 0) { + hash = (37 * hash) + FIELD_WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getFieldWarningsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -325,6 +413,13 @@ public Builder clear() { super.clear(); bitField0_ = 0; requestId_ = ""; + if (fieldWarningsBuilder_ == null) { + fieldWarnings_ = java.util.Collections.emptyList(); + } else { + fieldWarnings_ = null; + fieldWarningsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -352,6 +447,7 @@ public com.google.ads.datamanager.v1.IngestEventsResponse build() { public com.google.ads.datamanager.v1.IngestEventsResponse buildPartial() { com.google.ads.datamanager.v1.IngestEventsResponse result = new com.google.ads.datamanager.v1.IngestEventsResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -359,6 +455,19 @@ public com.google.ads.datamanager.v1.IngestEventsResponse buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.ads.datamanager.v1.IngestEventsResponse result) { + if (fieldWarningsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + fieldWarnings_ = java.util.Collections.unmodifiableList(fieldWarnings_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.fieldWarnings_ = fieldWarnings_; + } else { + result.fieldWarnings_ = fieldWarningsBuilder_.build(); + } + } + private void buildPartial0(com.google.ads.datamanager.v1.IngestEventsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -384,6 +493,33 @@ public Builder mergeFrom(com.google.ads.datamanager.v1.IngestEventsResponse othe bitField0_ |= 0x00000001; onChanged(); } + if (fieldWarningsBuilder_ == null) { + if (!other.fieldWarnings_.isEmpty()) { + if (fieldWarnings_.isEmpty()) { + fieldWarnings_ = other.fieldWarnings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureFieldWarningsIsMutable(); + fieldWarnings_.addAll(other.fieldWarnings_); + } + onChanged(); + } + } else { + if (!other.fieldWarnings_.isEmpty()) { + if (fieldWarningsBuilder_.isEmpty()) { + fieldWarningsBuilder_.dispose(); + fieldWarningsBuilder_ = null; + fieldWarnings_ = other.fieldWarnings_; + bitField0_ = (bitField0_ & ~0x00000002); + fieldWarningsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFieldWarningsFieldBuilder() + : null; + } else { + fieldWarningsBuilder_.addAllMessages(other.fieldWarnings_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -416,6 +552,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + com.google.ads.datamanager.v1.FieldWarning m = + input.readMessage( + com.google.ads.datamanager.v1.FieldWarning.parser(), extensionRegistry); + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(m); + } else { + fieldWarningsBuilder_.addMessage(m); + } + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -546,6 +695,378 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List fieldWarnings_ = + java.util.Collections.emptyList(); + + private void ensureFieldWarningsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + fieldWarnings_ = + new java.util.ArrayList(fieldWarnings_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.FieldWarning, + com.google.ads.datamanager.v1.FieldWarning.Builder, + com.google.ads.datamanager.v1.FieldWarningOrBuilder> + fieldWarningsBuilder_; + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public java.util.List getFieldWarningsList() { + if (fieldWarningsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fieldWarnings_); + } else { + return fieldWarningsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public int getFieldWarningsCount() { + if (fieldWarningsBuilder_ == null) { + return fieldWarnings_.size(); + } else { + return fieldWarningsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarning getFieldWarnings(int index) { + if (fieldWarningsBuilder_ == null) { + return fieldWarnings_.get(index); + } else { + return fieldWarningsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder setFieldWarnings(int index, com.google.ads.datamanager.v1.FieldWarning value) { + if (fieldWarningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldWarningsIsMutable(); + fieldWarnings_.set(index, value); + onChanged(); + } else { + fieldWarningsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder setFieldWarnings( + int index, com.google.ads.datamanager.v1.FieldWarning.Builder builderForValue) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldWarningsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addFieldWarnings(com.google.ads.datamanager.v1.FieldWarning value) { + if (fieldWarningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(value); + onChanged(); + } else { + fieldWarningsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addFieldWarnings(int index, com.google.ads.datamanager.v1.FieldWarning value) { + if (fieldWarningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(index, value); + onChanged(); + } else { + fieldWarningsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addFieldWarnings( + com.google.ads.datamanager.v1.FieldWarning.Builder builderForValue) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(builderForValue.build()); + onChanged(); + } else { + fieldWarningsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addFieldWarnings( + int index, com.google.ads.datamanager.v1.FieldWarning.Builder builderForValue) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldWarningsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder addAllFieldWarnings( + java.lang.Iterable values) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fieldWarnings_); + onChanged(); + } else { + fieldWarningsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder clearFieldWarnings() { + if (fieldWarningsBuilder_ == null) { + fieldWarnings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + fieldWarningsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public Builder removeFieldWarnings(int index) { + if (fieldWarningsBuilder_ == null) { + ensureFieldWarningsIsMutable(); + fieldWarnings_.remove(index); + onChanged(); + } else { + fieldWarningsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarning.Builder getFieldWarningsBuilder(int index) { + return internalGetFieldWarningsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarningOrBuilder getFieldWarningsOrBuilder( + int index) { + if (fieldWarningsBuilder_ == null) { + return fieldWarnings_.get(index); + } else { + return fieldWarningsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public java.util.List + getFieldWarningsOrBuilderList() { + if (fieldWarningsBuilder_ != null) { + return fieldWarningsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fieldWarnings_); + } + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarning.Builder addFieldWarningsBuilder() { + return internalGetFieldWarningsFieldBuilder() + .addBuilder(com.google.ads.datamanager.v1.FieldWarning.getDefaultInstance()); + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public com.google.ads.datamanager.v1.FieldWarning.Builder addFieldWarningsBuilder(int index) { + return internalGetFieldWarningsFieldBuilder() + .addBuilder(index, com.google.ads.datamanager.v1.FieldWarning.getDefaultInstance()); + } + + /** + * + * + *
+     * Detailed row-level warnings with field paths.
+     * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + public java.util.List + getFieldWarningsBuilderList() { + return internalGetFieldWarningsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.FieldWarning, + com.google.ads.datamanager.v1.FieldWarning.Builder, + com.google.ads.datamanager.v1.FieldWarningOrBuilder> + internalGetFieldWarningsFieldBuilder() { + if (fieldWarningsBuilder_ == null) { + fieldWarningsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.FieldWarning, + com.google.ads.datamanager.v1.FieldWarning.Builder, + com.google.ads.datamanager.v1.FieldWarningOrBuilder>( + fieldWarnings_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + fieldWarnings_ = null; + } + return fieldWarningsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.IngestEventsResponse) } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestEventsResponseOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestEventsResponseOrBuilder.java index 5a10e23242ac..ab740796ce95 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestEventsResponseOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestEventsResponseOrBuilder.java @@ -51,4 +51,60 @@ public interface IngestEventsResponseOrBuilder * @return The bytes for requestId. */ com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + java.util.List getFieldWarningsList(); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + com.google.ads.datamanager.v1.FieldWarning getFieldWarnings(int index); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + int getFieldWarningsCount(); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + java.util.List + getFieldWarningsOrBuilderList(); + + /** + * + * + *
+   * Detailed row-level warnings with field paths.
+   * 
+ * + * repeated .google.ads.datamanager.v1.FieldWarning field_warnings = 2; + */ + com.google.ads.datamanager.v1.FieldWarningOrBuilder getFieldWarningsOrBuilder(int index); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestedUserListInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestedUserListInfo.java index cf49da08d150..69ed1c9c99dd 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestedUserListInfo.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestedUserListInfo.java @@ -135,6 +135,7 @@ public enum UploadKeyType implements com.google.protobuf.ProtocolMessageEnum { * *
      * Data Management Platform IDs:
+     *
      * - Google User ID
      * - Partner Provided ID
      * - Publisher Provided ID
@@ -143,6 +144,7 @@ public enum UploadKeyType implements com.google.protobuf.ProtocolMessageEnum {
      * - Roku ID
      * - Amazon Fire TV ID
      * - Xbox or Microsoft ID
+     * - Generic Device ID
      * 
* * PSEUDONYMOUS_ID = 5; @@ -221,6 +223,7 @@ public enum UploadKeyType implements com.google.protobuf.ProtocolMessageEnum { * *
      * Data Management Platform IDs:
+     *
      * - Google User ID
      * - Partner Provided ID
      * - Publisher Provided ID
@@ -229,6 +232,7 @@ public enum UploadKeyType implements com.google.protobuf.ProtocolMessageEnum {
      * - Roku ID
      * - Amazon Fire TV ID
      * - Xbox or Microsoft ID
+     * - Generic Device ID
      * 
* * PSEUDONYMOUS_ID = 5; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java index 7631b3f51964..83088007a218 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java @@ -56,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_datamanager_v1_RemoveAudienceMembersResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_ads_datamanager_v1_RemoveAudienceMembersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_datamanager_v1_IngestEventsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -97,85 +105,101 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032+google/ads/datamanager/v1/destinati" + "on.proto\032/google/ads/datamanager/v1/encr" + "yption_info.proto\032%google/ads/datamanage" - + "r/v1/event.proto\032>google/ads/datamanager" - + "/v1/request_status_per_destination.proto" - + "\0320google/ads/datamanager/v1/terms_of_ser" - + "vice.proto\032\034google/api/annotations.proto" - + "\032\027google/api/client.proto\032\037google/api/fi" - + "eld_behavior.proto\"\320\003\n\034IngestAudienceMem" - + "bersRequest\022A\n\014destinations\030\001 \003(\0132&.goog" - + "le.ads.datamanager.v1.DestinationB\003\340A\002\022H" - + "\n\020audience_members\030\002 \003(\0132).google.ads.da" - + "tamanager.v1.AudienceMemberB\003\340A\002\0228\n\007cons" - + "ent\030\003 \001(\0132\".google.ads.datamanager.v1.Co" - + "nsentB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:" - + "\n\010encoding\030\005 \001(\0162#.google.ads.datamanage" - + "r.v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 " - + "\001(\0132).google.ads.datamanager.v1.Encrypti" - + "onInfoB\003\340A\001\022H\n\020terms_of_service\030\007 \001(\0132)." - + "google.ads.datamanager.v1.TermsOfService" - + "B\003\340A\001\"3\n\035IngestAudienceMembersResponse\022\022" - + "\n\nrequest_id\030\001 \001(\t\"\314\002\n\034RemoveAudienceMem" - + "bersRequest\022A\n\014destinations\030\001 \003(\0132&.goog" - + "le.ads.datamanager.v1.DestinationB\003\340A\002\022H" - + "\n\020audience_members\030\002 \003(\0132).google.ads.da" - + "tamanager.v1.AudienceMemberB\003\340A\002\022\032\n\rvali" - + "date_only\030\003 \001(\010B\003\340A\001\022:\n\010encoding\030\004 \001(\0162#" - + ".google.ads.datamanager.v1.EncodingB\003\340A\001" - + "\022G\n\017encryption_info\030\005 \001(\0132).google.ads.d" - + "atamanager.v1.EncryptionInfoB\003\340A\001\"3\n\035Rem" - + "oveAudienceMembersResponse\022\022\n\nrequest_id" - + "\030\001 \001(\t\"\352\002\n\023IngestEventsRequest\022A\n\014destin" - + "ations\030\001 \003(\0132&.google.ads.datamanager.v1" - + ".DestinationB\003\340A\002\0225\n\006events\030\002 \003(\0132 .goog" - + "le.ads.datamanager.v1.EventB\003\340A\002\0228\n\007cons" - + "ent\030\003 \001(\0132\".google.ads.datamanager.v1.Co" - + "nsentB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:" - + "\n\010encoding\030\005 \001(\0162#.google.ads.datamanage" - + "r.v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 " - + "\001(\0132).google.ads.datamanager.v1.Encrypti" - + "onInfoB\003\340A\001\"*\n\024IngestEventsResponse\022\022\n\nr" - + "equest_id\030\001 \001(\t\"\270\001\n\025IngestAdEventsReques" - + "t\022:\n\tad_events\030\001 \003(\0132\".google.ads.datama" - + "nager.v1.AdEventB\003\340A\002\022G\n\017encryption_info" - + "\030\002 \001(\0132).google.ads.datamanager.v1.Encry" - + "ptionInfoB\003\340A\001\022\032\n\rvalidate_only\030\003 \001(\010B\003\340" - + "A\001\"\030\n\026IngestAdEventsResponse\"7\n\034Retrieve" - + "RequestStatusRequest\022\027\n\nrequest_id\030\001 \001(\t" - + "B\003\340A\002\"\177\n\035RetrieveRequestStatusResponse\022^" - + "\n\036request_status_per_destination\030\001 \003(\01326" - + ".google.ads.datamanager.v1.RequestStatus" - + "PerDestination*9\n\010Encoding\022\030\n\024ENCODING_U" - + "NSPECIFIED\020\000\022\007\n\003HEX\020\001\022\n\n\006BASE64\020\0022\240\007\n\020In" - + "gestionService\022\261\001\n\025IngestAudienceMembers" - + "\0227.google.ads.datamanager.v1.IngestAudie" - + "nceMembersRequest\0328.google.ads.datamanag" - + "er.v1.IngestAudienceMembersResponse\"%\202\323\344" - + "\223\002\037\"\032/v1/audienceMembers:ingest:\001*\022\261\001\n\025R" - + "emoveAudienceMembers\0227.google.ads.datama" - + "nager.v1.RemoveAudienceMembersRequest\0328." - + "google.ads.datamanager.v1.RemoveAudience" - + "MembersResponse\"%\202\323\344\223\002\037\"\032/v1/audienceMem" - + "bers:remove:\001*\022\215\001\n\014IngestEvents\022..google" - + ".ads.datamanager.v1.IngestEventsRequest\032" - + "/.google.ads.datamanager.v1.IngestEvents" - + "Response\"\034\202\323\344\223\002\026\"\021/v1/events:ingest:\001*\022\225" - + "\001\n\016IngestAdEvents\0220.google.ads.datamanag" - + "er.v1.IngestAdEventsRequest\0321.google.ads" - + ".datamanager.v1.IngestAdEventsResponse\"\036" - + "\202\323\344\223\002\030\"\023/v1/adEvents:ingest:\001*\022\256\001\n\025Retri" - + "eveRequestStatus\0227.google.ads.datamanage" - + "r.v1.RetrieveRequestStatusRequest\0328.goog" - + "le.ads.datamanager.v1.RetrieveRequestSta" - + "tusResponse\"\"\202\323\344\223\002\034\022\032/v1/requestStatus:r" - + "etrieve\032K\312A\032datamanager.googleapis.com\322A" - + "+https://www.googleapis.com/auth/dataman" - + "agerB\322\001\n\035com.google.ads.datamanager.v1B\025" - + "IngestionServiceProtoP\001ZAcloud.google.co" - + "m/go/datamanager/apiv1/datamanagerpb;dat" - + "amanagerpb\252\002\031Google.Ads.DataManager.V1\312\002" - + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads" - + "::DataManager::V1b\006proto3" + + "r/v1/event.proto\0321google/ads/datamanager" + + "/v1/processing_errors.proto\032>google/ads/" + + "datamanager/v1/request_status_per_destin" + + "ation.proto\0320google/ads/datamanager/v1/t" + + "erms_of_service.proto\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\320\003\n\034IngestAudienc" + + "eMembersRequest\022A\n\014destinations\030\001 \003(\0132&." + + "google.ads.datamanager.v1.DestinationB\003\340" + + "A\002\022H\n\020audience_members\030\002 \003(\0132).google.ad" + + "s.datamanager.v1.AudienceMemberB\003\340A\002\0228\n\007" + + "consent\030\003 \001(\0132\".google.ads.datamanager.v" + + "1.ConsentB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340" + + "A\001\022:\n\010encoding\030\005 \001(\0162#.google.ads.datama" + + "nager.v1.EncodingB\003\340A\001\022G\n\017encryption_inf" + + "o\030\006 \001(\0132).google.ads.datamanager.v1.Encr" + + "yptionInfoB\003\340A\001\022H\n\020terms_of_service\030\007 \001(" + + "\0132).google.ads.datamanager.v1.TermsOfSer" + + "viceB\003\340A\001\"t\n\035IngestAudienceMembersRespon" + + "se\022\022\n\nrequest_id\030\001 \001(\t\022?\n\016field_warnings" + + "\030\002 \003(\0132\'.google.ads.datamanager.v1.Field" + + "Warning\"\314\002\n\034RemoveAudienceMembersRequest" + + "\022A\n\014destinations\030\001 \003(\0132&.google.ads.data" + + "manager.v1.DestinationB\003\340A\002\022H\n\020audience_" + + "members\030\002 \003(\0132).google.ads.datamanager.v" + + "1.AudienceMemberB\003\340A\002\022\032\n\rvalidate_only\030\003" + + " \001(\010B\003\340A\001\022:\n\010encoding\030\004 \001(\0162#.google.ads" + + ".datamanager.v1.EncodingB\003\340A\001\022G\n\017encrypt" + + "ion_info\030\005 \001(\0132).google.ads.datamanager." + + "v1.EncryptionInfoB\003\340A\001\"3\n\035RemoveAudience" + + "MembersResponse\022\022\n\nrequest_id\030\001 \001(\t\"\274\001\n\037" + + "RemoveAllAudienceMembersRequest\022A\n\014desti" + + "nations\030\001 \003(\0132&.google.ads.datamanager.v" + + "1.DestinationB\003\340A\002\022:\n\021remove_as_of_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\032" + + "\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"6\n RemoveAllA" + + "udienceMembersResponse\022\022\n\nrequest_id\030\001 \001" + + "(\t\"\352\002\n\023IngestEventsRequest\022A\n\014destinatio" + + "ns\030\001 \003(\0132&.google.ads.datamanager.v1.Des" + + "tinationB\003\340A\002\0225\n\006events\030\002 \003(\0132 .google.a" + + "ds.datamanager.v1.EventB\003\340A\002\0228\n\007consent\030" + + "\003 \001(\0132\".google.ads.datamanager.v1.Consen" + + "tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:\n\010en" + + "coding\030\005 \001(\0162#.google.ads.datamanager.v1" + + ".EncodingB\003\340A\001\022G\n\017encryption_info\030\006 \001(\0132" + + ").google.ads.datamanager.v1.EncryptionIn" + + "foB\003\340A\001\"k\n\024IngestEventsResponse\022\022\n\nreque" + + "st_id\030\001 \001(\t\022?\n\016field_warnings\030\002 \003(\0132\'.go" + + "ogle.ads.datamanager.v1.FieldWarning\"\272\001\n" + + "\025IngestAdEventsRequest\022:\n\tad_events\030\001 \003(" + + "\0132\".google.ads.datamanager.v1.AdEventB\003\340" + + "A\002\022G\n\017encryption_info\030\002 \001(\0132).google.ads" + + ".datamanager.v1.EncryptionInfoB\003\340A\002\022\034\n\rv" + + "alidate_only\030\003 \001(\010B\005\030\001\340A\001\"\030\n\026IngestAdEve" + + "ntsResponse\"7\n\034RetrieveRequestStatusRequ" + + "est\022\027\n\nrequest_id\030\001 \001(\tB\003\340A\002\"\177\n\035Retrieve" + + "RequestStatusResponse\022^\n\036request_status_" + + "per_destination\030\001 \003(\01326.google.ads.datam" + + "anager.v1.RequestStatusPerDestination*9\n" + + "\010Encoding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\007\n\003H" + + "EX\020\001\022\n\n\006BASE64\020\0022\340\010\n\020IngestionService\022\261\001" + + "\n\025IngestAudienceMembers\0227.google.ads.dat" + + "amanager.v1.IngestAudienceMembersRequest" + + "\0328.google.ads.datamanager.v1.IngestAudie" + + "nceMembersResponse\"%\202\323\344\223\002\037\"\032/v1/audience" + + "Members:ingest:\001*\022\261\001\n\025RemoveAudienceMemb" + + "ers\0227.google.ads.datamanager.v1.RemoveAu" + + "dienceMembersRequest\0328.google.ads.datama" + + "nager.v1.RemoveAudienceMembersResponse\"%" + + "\202\323\344\223\002\037\"\032/v1/audienceMembers:remove:\001*\022\275\001" + + "\n\030RemoveAllAudienceMembers\022:.google.ads." + + "datamanager.v1.RemoveAllAudienceMembersR" + + "equest\032;.google.ads.datamanager.v1.Remov" + + "eAllAudienceMembersResponse\"(\202\323\344\223\002\"\"\035/v1" + + "/audienceMembers:removeAll:\001*\022\215\001\n\014Ingest" + + "Events\022..google.ads.datamanager.v1.Inges" + + "tEventsRequest\032/.google.ads.datamanager." + + "v1.IngestEventsResponse\"\034\202\323\344\223\002\026\"\021/v1/eve" + + "nts:ingest:\001*\022\225\001\n\016IngestAdEvents\0220.googl" + + "e.ads.datamanager.v1.IngestAdEventsReque" + + "st\0321.google.ads.datamanager.v1.IngestAdE" + + "ventsResponse\"\036\202\323\344\223\002\030\"\023/v1/adEvents:inge" + + "st:\001*\022\256\001\n\025RetrieveRequestStatus\0227.google" + + ".ads.datamanager.v1.RetrieveRequestStatu" + + "sRequest\0328.google.ads.datamanager.v1.Ret" + + "rieveRequestStatusResponse\"\"\202\323\344\223\002\034\022\032/v1/" + + "requestStatus:retrieve\032K\312A\032datamanager.g" + + "oogleapis.com\322A+https://www.googleapis.c" + + "om/auth/datamanagerB\322\001\n\035com.google.ads.d" + + "atamanager.v1B\025IngestionServiceProtoP\001ZA" + + "cloud.google.com/go/datamanager/apiv1/da" + + "tamanagerpb;datamanagerpb\252\002\031Google.Ads.D" + + "ataManager.V1\312\002\031Google\\Ads\\DataManager\\V" + + "1\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -187,11 +211,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.ads.datamanager.v1.DestinationProto.getDescriptor(), com.google.ads.datamanager.v1.EncryptionInfoProto.getDescriptor(), com.google.ads.datamanager.v1.EventProto.getDescriptor(), + com.google.ads.datamanager.v1.ProcessingErrorsProto.getDescriptor(), com.google.ads.datamanager.v1.RequestStatusPerDestinationProto.getDescriptor(), com.google.ads.datamanager.v1.TermsOfServiceProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_ads_datamanager_v1_IngestAudienceMembersRequest_descriptor = getDescriptor().getMessageType(0); @@ -213,7 +239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_IngestAudienceMembersResponse_descriptor, new java.lang.String[] { - "RequestId", + "RequestId", "FieldWarnings", }); internal_static_google_ads_datamanager_v1_RemoveAudienceMembersRequest_descriptor = getDescriptor().getMessageType(2); @@ -231,8 +257,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RequestId", }); - internal_static_google_ads_datamanager_v1_IngestEventsRequest_descriptor = + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_descriptor = getDescriptor().getMessageType(4); + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_descriptor, + new java.lang.String[] { + "Destinations", "RemoveAsOfTime", "ValidateOnly", + }); + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_descriptor, + new java.lang.String[] { + "RequestId", + }); + internal_static_google_ads_datamanager_v1_IngestEventsRequest_descriptor = + getDescriptor().getMessageType(6); internal_static_google_ads_datamanager_v1_IngestEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_IngestEventsRequest_descriptor, @@ -240,15 +282,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Destinations", "Events", "Consent", "ValidateOnly", "Encoding", "EncryptionInfo", }); internal_static_google_ads_datamanager_v1_IngestEventsResponse_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_ads_datamanager_v1_IngestEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_IngestEventsResponse_descriptor, new java.lang.String[] { - "RequestId", + "RequestId", "FieldWarnings", }); internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor, @@ -256,13 +298,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdEvents", "EncryptionInfo", "ValidateOnly", }); internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor, new java.lang.String[] {}); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor, @@ -270,7 +312,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusResponse_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RetrieveRequestStatusResponse_descriptor, @@ -284,11 +326,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.ads.datamanager.v1.DestinationProto.getDescriptor(); com.google.ads.datamanager.v1.EncryptionInfoProto.getDescriptor(); com.google.ads.datamanager.v1.EventProto.getDescriptor(); + com.google.ads.datamanager.v1.ProcessingErrorsProto.getDescriptor(); com.google.ads.datamanager.v1.RequestStatusPerDestinationProto.getDescriptor(); com.google.ads.datamanager.v1.TermsOfServiceProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListDirectLicensesRequest.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListDirectLicensesRequest.java index c557236bb195..e4a7e08ec279 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListDirectLicensesRequest.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListDirectLicensesRequest.java @@ -160,6 +160,10 @@ public com.google.protobuf.ByteString getParentBytes() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -206,6 +210,10 @@ public java.lang.String getFilter() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -854,6 +862,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -899,6 +911,10 @@ public java.lang.String getFilter() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -944,6 +960,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -988,6 +1008,10 @@ public Builder setFilter(java.lang.String value) { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -1028,6 +1052,10 @@ public Builder clearFilter() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListDirectLicensesRequestOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListDirectLicensesRequestOrBuilder.java index 260ea3ae6609..db989f4d35ac 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListDirectLicensesRequestOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListDirectLicensesRequestOrBuilder.java @@ -79,6 +79,10 @@ public interface ListUserListDirectLicensesRequestOrBuilder * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -114,6 +118,10 @@ public interface ListUserListDirectLicensesRequestOrBuilder * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicenseCustomerInfosRequest.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicenseCustomerInfosRequest.java index b401603a70f5..4c1b211b5b0d 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicenseCustomerInfosRequest.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicenseCustomerInfosRequest.java @@ -170,6 +170,10 @@ public com.google.protobuf.ByteString getParentBytes() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -216,6 +220,10 @@ public java.lang.String getFilter() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -898,6 +906,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -943,6 +955,10 @@ public java.lang.String getFilter() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -988,6 +1004,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -1032,6 +1052,10 @@ public Builder setFilter(java.lang.String value) { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -1072,6 +1096,10 @@ public Builder clearFilter() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicenseCustomerInfosRequestOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicenseCustomerInfosRequestOrBuilder.java index b46428ec6bb3..ca543f2a5a0e 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicenseCustomerInfosRequestOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicenseCustomerInfosRequestOrBuilder.java @@ -87,6 +87,10 @@ public interface ListUserListGlobalLicenseCustomerInfosRequestOrBuilder * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -122,6 +126,10 @@ public interface ListUserListGlobalLicenseCustomerInfosRequestOrBuilder * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicensesRequest.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicensesRequest.java index 0e7343ac2dee..b86cb81415cb 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicensesRequest.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicensesRequest.java @@ -160,6 +160,10 @@ public com.google.protobuf.ByteString getParentBytes() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -206,6 +210,10 @@ public java.lang.String getFilter() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -854,6 +862,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -899,6 +911,10 @@ public java.lang.String getFilter() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -944,6 +960,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -988,6 +1008,10 @@ public Builder setFilter(java.lang.String value) { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -1028,6 +1052,10 @@ public Builder clearFilter() { * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicensesRequestOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicensesRequestOrBuilder.java index ba286dc4e6ff..5d25ff8d5065 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicensesRequestOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListGlobalLicensesRequestOrBuilder.java @@ -79,6 +79,10 @@ public interface ListUserListGlobalLicensesRequestOrBuilder * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) @@ -114,6 +118,10 @@ public interface ListUserListGlobalLicensesRequestOrBuilder * - `<` * - `<=` * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(user_list_id, 123, 456)` + * * **Unsupported Fields:** * * - `name` (use get method instead) diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListsRequest.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListsRequest.java index 6ccfb22d90b7..b5d207aa8f1b 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListsRequest.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListsRequest.java @@ -241,6 +241,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * - `<=` * - `:` (has) * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(display_name, "name1", "name2")` + * * Supported fields: * * - `id` @@ -291,6 +295,10 @@ public java.lang.String getFilter() { * - `<=` * - `:` (has) * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(display_name, "name1", "name2")` + * * Supported fields: * * - `id` @@ -1045,6 +1053,10 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * - `<=` * - `:` (has) * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(display_name, "name1", "name2")` + * * Supported fields: * * - `id` @@ -1094,6 +1106,10 @@ public java.lang.String getFilter() { * - `<=` * - `:` (has) * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(display_name, "name1", "name2")` + * * Supported fields: * * - `id` @@ -1143,6 +1159,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * - `<=` * - `:` (has) * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(display_name, "name1", "name2")` + * * Supported fields: * * - `id` @@ -1191,6 +1211,10 @@ public Builder setFilter(java.lang.String value) { * - `<=` * - `:` (has) * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(display_name, "name1", "name2")` + * * Supported fields: * * - `id` @@ -1235,6 +1259,10 @@ public Builder clearFilter() { * - `<=` * - `:` (has) * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(display_name, "name1", "name2")` + * * Supported fields: * * - `id` diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListsRequestOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListsRequestOrBuilder.java index 0b057b485248..cb0c9c263ff5 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListsRequestOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ListUserListsRequestOrBuilder.java @@ -130,6 +130,10 @@ public interface ListUserListsRequestOrBuilder * - `<=` * - `:` (has) * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(display_name, "name1", "name2")` + * * Supported fields: * * - `id` @@ -169,6 +173,10 @@ public interface ListUserListsRequestOrBuilder * - `<=` * - `:` (has) * + * **Supported Functions:** + * - `IN(field, value1, value2, ...)`: returns true if the field matches any + * of the values. Example: `IN(display_name, "name1", "name2")` + * * Supported fields: * * - `id` diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MobileData.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MobileData.java index 7507df8951e3..8e3aa941681f 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MobileData.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MobileData.java @@ -80,8 +80,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-   * `mobileIds` can be provided in a single
+   * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+   * for Customer Match user lists and Android advertising ID, iOS IDFA,
+   * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+   * basic user lists). At most 10 `mobileIds` can be provided in a single
    * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
    * 
* @@ -97,8 +99,10 @@ public com.google.protobuf.ProtocolStringList getMobileIdsList() { * * *
-   * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-   * `mobileIds` can be provided in a single
+   * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+   * for Customer Match user lists and Android advertising ID, iOS IDFA,
+   * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+   * basic user lists). At most 10 `mobileIds` can be provided in a single
    * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
    * 
* @@ -114,8 +118,10 @@ public int getMobileIdsCount() { * * *
-   * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-   * `mobileIds` can be provided in a single
+   * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+   * for Customer Match user lists and Android advertising ID, iOS IDFA,
+   * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+   * basic user lists). At most 10 `mobileIds` can be provided in a single
    * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
    * 
* @@ -132,8 +138,10 @@ public java.lang.String getMobileIds(int index) { * * *
-   * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-   * `mobileIds` can be provided in a single
+   * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+   * for Customer Match user lists and Android advertising ID, iOS IDFA,
+   * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+   * basic user lists). At most 10 `mobileIds` can be provided in a single
    * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
    * 
* @@ -482,8 +490,10 @@ private void ensureMobileIdsIsMutable() { * * *
-     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-     * `mobileIds` can be provided in a single
+     * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+     * for Customer Match user lists and Android advertising ID, iOS IDFA,
+     * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+     * basic user lists). At most 10 `mobileIds` can be provided in a single
      * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
      * 
* @@ -500,8 +510,10 @@ public com.google.protobuf.ProtocolStringList getMobileIdsList() { * * *
-     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-     * `mobileIds` can be provided in a single
+     * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+     * for Customer Match user lists and Android advertising ID, iOS IDFA,
+     * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+     * basic user lists). At most 10 `mobileIds` can be provided in a single
      * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
      * 
* @@ -517,8 +529,10 @@ public int getMobileIdsCount() { * * *
-     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-     * `mobileIds` can be provided in a single
+     * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+     * for Customer Match user lists and Android advertising ID, iOS IDFA,
+     * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+     * basic user lists). At most 10 `mobileIds` can be provided in a single
      * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
      * 
* @@ -535,8 +549,10 @@ public java.lang.String getMobileIds(int index) { * * *
-     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-     * `mobileIds` can be provided in a single
+     * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+     * for Customer Match user lists and Android advertising ID, iOS IDFA,
+     * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+     * basic user lists). At most 10 `mobileIds` can be provided in a single
      * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
      * 
* @@ -553,8 +569,10 @@ public com.google.protobuf.ByteString getMobileIdsBytes(int index) { * * *
-     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-     * `mobileIds` can be provided in a single
+     * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+     * for Customer Match user lists and Android advertising ID, iOS IDFA,
+     * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+     * basic user lists). At most 10 `mobileIds` can be provided in a single
      * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
      * 
* @@ -579,8 +597,10 @@ public Builder setMobileIds(int index, java.lang.String value) { * * *
-     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-     * `mobileIds` can be provided in a single
+     * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+     * for Customer Match user lists and Android advertising ID, iOS IDFA,
+     * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+     * basic user lists). At most 10 `mobileIds` can be provided in a single
      * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
      * 
* @@ -604,8 +624,10 @@ public Builder addMobileIds(java.lang.String value) { * * *
-     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-     * `mobileIds` can be provided in a single
+     * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+     * for Customer Match user lists and Android advertising ID, iOS IDFA,
+     * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+     * basic user lists). At most 10 `mobileIds` can be provided in a single
      * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
      * 
* @@ -626,8 +648,10 @@ public Builder addAllMobileIds(java.lang.Iterable values) { * * *
-     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-     * `mobileIds` can be provided in a single
+     * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+     * for Customer Match user lists and Android advertising ID, iOS IDFA,
+     * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+     * basic user lists). At most 10 `mobileIds` can be provided in a single
      * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
      * 
* @@ -647,8 +671,10 @@ public Builder clearMobileIds() { * * *
-     * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-     * `mobileIds` can be provided in a single
+     * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+     * for Customer Match user lists and Android advertising ID, iOS IDFA,
+     * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+     * basic user lists). At most 10 `mobileIds` can be provided in a single
      * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
      * 
* diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MobileDataOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MobileDataOrBuilder.java index b1e84a80c3e3..480746c2f40f 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MobileDataOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MobileDataOrBuilder.java @@ -30,8 +30,10 @@ public interface MobileDataOrBuilder * * *
-   * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-   * `mobileIds` can be provided in a single
+   * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+   * for Customer Match user lists and Android advertising ID, iOS IDFA,
+   * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+   * basic user lists). At most 10 `mobileIds` can be provided in a single
    * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
    * 
* @@ -45,8 +47,10 @@ public interface MobileDataOrBuilder * * *
-   * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-   * `mobileIds` can be provided in a single
+   * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+   * for Customer Match user lists and Android advertising ID, iOS IDFA,
+   * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+   * basic user lists). At most 10 `mobileIds` can be provided in a single
    * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
    * 
* @@ -60,8 +64,10 @@ public interface MobileDataOrBuilder * * *
-   * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-   * `mobileIds` can be provided in a single
+   * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+   * for Customer Match user lists and Android advertising ID, iOS IDFA,
+   * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+   * basic user lists). At most 10 `mobileIds` can be provided in a single
    * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
    * 
* @@ -76,8 +82,10 @@ public interface MobileDataOrBuilder * * *
-   * Required. The list of mobile device IDs (advertising ID/IDFA). At most 10
-   * `mobileIds` can be provided in a single
+   * Required. The list of mobile device IDs (Android advertising ID, iOS IDFA
+   * for Customer Match user lists and Android advertising ID, iOS IDFA,
+   * Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for
+   * basic user lists). At most 10 `mobileIds` can be provided in a single
    * [AudienceMember][google.ads.datamanager.v1.AudienceMember].
    * 
* diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerProvidedIdData.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerProvidedIdData.java new file mode 100644 index 000000000000..5d8df27cb696 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerProvidedIdData.java @@ -0,0 +1,712 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/audience.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Partner-provided data holding the partner-provided identifiers. At least one
+ * partner-provided identifier is required.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerProvidedIdData} + */ +@com.google.protobuf.Generated +public final class PartnerProvidedIdData extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.PartnerProvidedIdData) + PartnerProvidedIdDataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "PartnerProvidedIdData"); + } + + // Use PartnerProvidedIdData.newBuilder() to construct. + private PartnerProvidedIdData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PartnerProvidedIdData() { + partnerProvidedIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.PartnerProvidedIdData.class, + com.google.ads.datamanager.v1.PartnerProvidedIdData.Builder.class); + } + + public static final int PARTNER_PROVIDED_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList partnerProvidedIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The list of partner-provided identifiers.
+   * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the partnerProvidedIds. + */ + public com.google.protobuf.ProtocolStringList getPartnerProvidedIdsList() { + return partnerProvidedIds_; + } + + /** + * + * + *
+   * Required. The list of partner-provided identifiers.
+   * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of partnerProvidedIds. + */ + public int getPartnerProvidedIdsCount() { + return partnerProvidedIds_.size(); + } + + /** + * + * + *
+   * Required. The list of partner-provided identifiers.
+   * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The partnerProvidedIds at the given index. + */ + public java.lang.String getPartnerProvidedIds(int index) { + return partnerProvidedIds_.get(index); + } + + /** + * + * + *
+   * Required. The list of partner-provided identifiers.
+   * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the partnerProvidedIds at the given index. + */ + public com.google.protobuf.ByteString getPartnerProvidedIdsBytes(int index) { + return partnerProvidedIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < partnerProvidedIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, partnerProvidedIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < partnerProvidedIds_.size(); i++) { + dataSize += computeStringSizeNoTag(partnerProvidedIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getPartnerProvidedIdsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.datamanager.v1.PartnerProvidedIdData)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.PartnerProvidedIdData other = + (com.google.ads.datamanager.v1.PartnerProvidedIdData) obj; + + if (!getPartnerProvidedIdsList().equals(other.getPartnerProvidedIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPartnerProvidedIdsCount() > 0) { + hash = (37 * hash) + PARTNER_PROVIDED_IDS_FIELD_NUMBER; + hash = (53 * hash) + getPartnerProvidedIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.PartnerProvidedIdData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Partner-provided data holding the partner-provided identifiers. At least one
+   * partner-provided identifier is required.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerProvidedIdData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.PartnerProvidedIdData) + com.google.ads.datamanager.v1.PartnerProvidedIdDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.PartnerProvidedIdData.class, + com.google.ads.datamanager.v1.PartnerProvidedIdData.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.PartnerProvidedIdData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + partnerProvidedIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.AudienceProto + .internal_static_google_ads_datamanager_v1_PartnerProvidedIdData_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerProvidedIdData getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.PartnerProvidedIdData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerProvidedIdData build() { + com.google.ads.datamanager.v1.PartnerProvidedIdData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerProvidedIdData buildPartial() { + com.google.ads.datamanager.v1.PartnerProvidedIdData result = + new com.google.ads.datamanager.v1.PartnerProvidedIdData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.PartnerProvidedIdData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + partnerProvidedIds_.makeImmutable(); + result.partnerProvidedIds_ = partnerProvidedIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.PartnerProvidedIdData) { + return mergeFrom((com.google.ads.datamanager.v1.PartnerProvidedIdData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.PartnerProvidedIdData other) { + if (other == com.google.ads.datamanager.v1.PartnerProvidedIdData.getDefaultInstance()) + return this; + if (!other.partnerProvidedIds_.isEmpty()) { + if (partnerProvidedIds_.isEmpty()) { + partnerProvidedIds_ = other.partnerProvidedIds_; + bitField0_ |= 0x00000001; + } else { + ensurePartnerProvidedIdsIsMutable(); + partnerProvidedIds_.addAll(other.partnerProvidedIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePartnerProvidedIdsIsMutable(); + partnerProvidedIds_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList partnerProvidedIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePartnerProvidedIdsIsMutable() { + if (!partnerProvidedIds_.isModifiable()) { + partnerProvidedIds_ = new com.google.protobuf.LazyStringArrayList(partnerProvidedIds_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * Required. The list of partner-provided identifiers.
+     * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the partnerProvidedIds. + */ + public com.google.protobuf.ProtocolStringList getPartnerProvidedIdsList() { + partnerProvidedIds_.makeImmutable(); + return partnerProvidedIds_; + } + + /** + * + * + *
+     * Required. The list of partner-provided identifiers.
+     * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of partnerProvidedIds. + */ + public int getPartnerProvidedIdsCount() { + return partnerProvidedIds_.size(); + } + + /** + * + * + *
+     * Required. The list of partner-provided identifiers.
+     * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The partnerProvidedIds at the given index. + */ + public java.lang.String getPartnerProvidedIds(int index) { + return partnerProvidedIds_.get(index); + } + + /** + * + * + *
+     * Required. The list of partner-provided identifiers.
+     * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the partnerProvidedIds at the given index. + */ + public com.google.protobuf.ByteString getPartnerProvidedIdsBytes(int index) { + return partnerProvidedIds_.getByteString(index); + } + + /** + * + * + *
+     * Required. The list of partner-provided identifiers.
+     * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The partnerProvidedIds to set. + * @return This builder for chaining. + */ + public Builder setPartnerProvidedIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartnerProvidedIdsIsMutable(); + partnerProvidedIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of partner-provided identifiers.
+     * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The partnerProvidedIds to add. + * @return This builder for chaining. + */ + public Builder addPartnerProvidedIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartnerProvidedIdsIsMutable(); + partnerProvidedIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of partner-provided identifiers.
+     * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The partnerProvidedIds to add. + * @return This builder for chaining. + */ + public Builder addAllPartnerProvidedIds(java.lang.Iterable values) { + ensurePartnerProvidedIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partnerProvidedIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of partner-provided identifiers.
+     * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPartnerProvidedIds() { + partnerProvidedIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of partner-provided identifiers.
+     * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes of the partnerProvidedIds to add. + * @return This builder for chaining. + */ + public Builder addPartnerProvidedIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePartnerProvidedIdsIsMutable(); + partnerProvidedIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.PartnerProvidedIdData) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.PartnerProvidedIdData) + private static final com.google.ads.datamanager.v1.PartnerProvidedIdData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.PartnerProvidedIdData(); + } + + public static com.google.ads.datamanager.v1.PartnerProvidedIdData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartnerProvidedIdData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerProvidedIdData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerProvidedIdDataOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerProvidedIdDataOrBuilder.java new file mode 100644 index 000000000000..01e53cd41d4e --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerProvidedIdDataOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/audience.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface PartnerProvidedIdDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.PartnerProvidedIdData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The list of partner-provided identifiers.
+   * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the partnerProvidedIds. + */ + java.util.List getPartnerProvidedIdsList(); + + /** + * + * + *
+   * Required. The list of partner-provided identifiers.
+   * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of partnerProvidedIds. + */ + int getPartnerProvidedIdsCount(); + + /** + * + * + *
+   * Required. The list of partner-provided identifiers.
+   * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The partnerProvidedIds at the given index. + */ + java.lang.String getPartnerProvidedIds(int index); + + /** + * + * + *
+   * Required. The list of partner-provided identifiers.
+   * 
+ * + * repeated string partner_provided_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the partnerProvidedIds at the given index. + */ + com.google.protobuf.ByteString getPartnerProvidedIdsBytes(int index); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorReason.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorReason.java index 8f5240db91ec..a3b178d46e54 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorReason.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorReason.java @@ -486,6 +486,17 @@ public enum ProcessingErrorReason implements com.google.protobuf.ProtocolMessage * PROCESSING_ERROR_REASON_CLICK_NOT_FOUND = 43; */ PROCESSING_ERROR_REASON_CLICK_NOT_FOUND(43), + /** + * + * + *
+   * External attribution data is missing. Sending events to a destination for
+   * an external attribution conversion action isn't supported.
+   * 
+ * + * PROCESSING_ERROR_REASON_EXTERNAL_ATTRIBUTION_DATA_MISSING = 44; + */ + PROCESSING_ERROR_REASON_EXTERNAL_ATTRIBUTION_DATA_MISSING(44), UNRECOGNIZED(-1), ; @@ -999,6 +1010,18 @@ public enum ProcessingErrorReason implements com.google.protobuf.ProtocolMessage */ public static final int PROCESSING_ERROR_REASON_CLICK_NOT_FOUND_VALUE = 43; + /** + * + * + *
+   * External attribution data is missing. Sending events to a destination for
+   * an external attribution conversion action isn't supported.
+   * 
+ * + * PROCESSING_ERROR_REASON_EXTERNAL_ATTRIBUTION_DATA_MISSING = 44; + */ + public static final int PROCESSING_ERROR_REASON_EXTERNAL_ATTRIBUTION_DATA_MISSING_VALUE = 44; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1111,6 +1134,8 @@ public static ProcessingErrorReason forNumber(int value) { return PROCESSING_ERROR_REASON_INVALID_OPERATING_ACCOUNT_FOR_CLICK; case 43: return PROCESSING_ERROR_REASON_CLICK_NOT_FOUND; + case 44: + return PROCESSING_ERROR_REASON_EXTERNAL_ATTRIBUTION_DATA_MISSING; default: return null; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java index ccf094496e78..6fa0fee0e576 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProcessingErrorsProto.java @@ -56,6 +56,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_datamanager_v1_WarningCount_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_ads_datamanager_v1_WarningCount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_FieldWarning_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_FieldWarning_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -76,82 +80,104 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1.WarningCount\"h\n\014WarningCount\022\024\n\014record" + "_count\030\001 \001(\003\022B\n\006reason\030\002 \001(\01622.google.ad" + "s.datamanager.v1.ProcessingWarningReason" - + "*\374\021\n\025ProcessingErrorReason\022\'\n#PROCESSING" - + "_ERROR_REASON_UNSPECIFIED\020\000\0223\n/PROCESSIN" - + "G_ERROR_REASON_INVALID_CUSTOM_VARIABLE\020\001" - + "\0227\n3PROCESSING_ERROR_REASON_CUSTOM_VARIA" - + "BLE_NOT_ENABLED\020\002\022)\n%PROCESSING_ERROR_RE" - + "ASON_EVENT_TOO_OLD\020\003\022*\n&PROCESSING_ERROR" - + "_REASON_DENIED_CONSENT\020\004\022&\n\"PROCESSING_E" - + "RROR_REASON_NO_CONSENT\020\005\022+\n\'PROCESSING_E" - + "RROR_REASON_UNKNOWN_CONSENT\020\006\022+\n\'PROCESS" - + "ING_ERROR_REASON_DUPLICATE_GCLID\020\007\0224\n0PR" - + "OCESSING_ERROR_REASON_DUPLICATE_TRANSACT" - + "ION_ID\020\010\022*\n&PROCESSING_ERROR_REASON_INVA" - + "LID_GBRAID\020\t\022)\n%PROCESSING_ERROR_REASON_" - + "INVALID_GCLID\020\n\022/\n+PROCESSING_ERROR_REAS" - + "ON_INVALID_MERCHANT_ID\020\013\022*\n&PROCESSING_E" - + "RROR_REASON_INVALID_WBRAID\020\014\022*\n&PROCESSI" - + "NG_ERROR_REASON_INTERNAL_ERROR\020\r\022U\nQPROC" - + "ESSING_ERROR_REASON_DESTINATION_ACCOUNT_" - + "ENHANCED_CONVERSIONS_TERMS_NOT_SIGNED\020\016\022" - + ")\n%PROCESSING_ERROR_REASON_INVALID_EVENT" - + "\020\017\022=\n9PROCESSING_ERROR_REASON_INSUFFICIE" - + "NT_MATCHED_TRANSACTIONS\020\020\0225\n1PROCESSING_" - + "ERROR_REASON_INSUFFICIENT_TRANSACTIONS\020\021" - + "\022*\n&PROCESSING_ERROR_REASON_INVALID_FORM" - + "AT\020\022\022,\n(PROCESSING_ERROR_REASON_DECRYPTI" - + "ON_ERROR\020\023\0220\n,PROCESSING_ERROR_REASON_DE" - + "K_DECRYPTION_ERROR\020\024\022\'\n#PROCESSING_ERROR" - + "_REASON_INVALID_WIP\020\025\022\'\n#PROCESSING_ERRO" - + "R_REASON_INVALID_KEK\020\026\022+\n\'PROCESSING_ERR" - + "OR_REASON_WIP_AUTH_FAILED\020\027\0221\n-PROCESSIN" - + "G_ERROR_REASON_KEK_PERMISSION_DENIED\020\030\022+" - + "\n\'PROCESSING_ERROR_REASON_AWS_AUTH_FAILE" - + "D\020\033\022<\n8PROCESSING_ERROR_REASON_USER_IDEN" - + "TIFIER_DECRYPTION_ERROR\020\031\022A\n=PROCESSING_" - + "ERROR_OPERATING_ACCOUNT_MISMATCH_FOR_AD_" - + "IDENTIFIER\020\032\022T\nPPROCESSING_ERROR_REASON_" - + "ONE_PER_CLICK_CONVERSION_ACTION_NOT_PERM" - + "ITTED_WITH_BRAID\020\034\022.\n*PROCESSING_ERROR_R" - + "EASON_MATCH_ID_NOT_FOUND\020\035\022:\n6PROCESSING" - + "_ERROR_REASON_USER_ID_NOT_FOUND_FOR_MATC" - + "H_ID\020\036\0227\n3PROCESSING_ERROR_REASON_USER_I" - + "D_NOT_FOUND_FOR_GCLID\020\037\0227\n3PROCESSING_ER" - + "ROR_REASON_USER_ID_NOT_FOUND_FOR_DCLID\020 " - + "\0222\n.PROCESSING_ERROR_REASON_INVALID_AD_I" - + "DENTIFIERS\020!\0224\n0PROCESSING_ERROR_REASON_" - + "INVALID_MOBILE_ID_FORMAT\020\"\022:\n6PROCESSING" - + "_ERROR_REASON_ORIGINAL_CONVERSIONS_NOT_F" - + "OUND\020#\0221\n-PROCESSING_ERROR_REASON_EVENT_" - + "ID_DECODE_ERROR\020$\022?\n;PROCESSING_ERROR_RE" - + "ASON_USER_ID_NOT_FOUND_FOR_IMPRESSION_ID" - + "\020%\022-\n)PROCESSING_ERROR_REASON_USER_ID_NO" - + "T_FOUND\020&\0225\n1PROCESSING_ERROR_REASON_CON" - + "VERSION_PRECEDES_CLICK\020\'\022,\n(PROCESSING_E" - + "RROR_REASON_TOO_RECENT_CLICK\020(\022)\n%PROCES" - + "SING_ERROR_REASON_INVALID_CLICK\020)\022?\n;PRO" - + "CESSING_ERROR_REASON_INVALID_OPERATING_A" - + "CCOUNT_FOR_CLICK\020*\022+\n\'PROCESSING_ERROR_R" - + "EASON_CLICK_NOT_FOUND\020+*\377\003\n\027ProcessingWa" - + "rningReason\022)\n%PROCESSING_WARNING_REASON" - + "_UNSPECIFIED\020\000\0223\n/PROCESSING_WARNING_REA" - + "SON_KEK_PERMISSION_DENIED\020\001\0222\n.PROCESSIN" - + "G_WARNING_REASON_DEK_DECRYPTION_ERROR\020\002\022" - + ".\n*PROCESSING_WARNING_REASON_DECRYPTION_" - + "ERROR\020\003\022-\n)PROCESSING_WARNING_REASON_WIP" - + "_AUTH_FAILED\020\004\022)\n%PROCESSING_WARNING_REA" - + "SON_INVALID_WIP\020\005\022)\n%PROCESSING_WARNING_" - + "REASON_INVALID_KEK\020\006\022>\n:PROCESSING_WARNI" - + "NG_REASON_USER_IDENTIFIER_DECRYPTION_ERR" - + "OR\020\007\022,\n(PROCESSING_WARNING_REASON_INTERN" - + "AL_ERROR\020\010\022-\n)PROCESSING_WARNING_REASON_" - + "AWS_AUTH_FAILED\020\tB\322\001\n\035com.google.ads.dat" - + "amanager.v1B\025ProcessingErrorsProtoP\001ZAcl" - + "oud.google.com/go/datamanager/apiv1/data" - + "managerpb;datamanagerpb\252\002\031Google.Ads.Dat" - + "aManager.V1\312\002\031Google\\Ads\\DataManager\\V1\352" - + "\002\034Google::Ads::DataManager::V1b\006proto3" + + "\"l\n\014FieldWarning\0228\n\006reason\030\001 \001(\0162(.googl" + + "e.ads.datamanager.v1.WarningReason\022\023\n\013de" + + "scription\030\002 \001(\t\022\r\n\005field\030\003 \001(\t*\273\022\n\025Proce" + + "ssingErrorReason\022\'\n#PROCESSING_ERROR_REA" + + "SON_UNSPECIFIED\020\000\0223\n/PROCESSING_ERROR_RE" + + "ASON_INVALID_CUSTOM_VARIABLE\020\001\0227\n3PROCES" + + "SING_ERROR_REASON_CUSTOM_VARIABLE_NOT_EN" + + "ABLED\020\002\022)\n%PROCESSING_ERROR_REASON_EVENT" + + "_TOO_OLD\020\003\022*\n&PROCESSING_ERROR_REASON_DE" + + "NIED_CONSENT\020\004\022&\n\"PROCESSING_ERROR_REASO" + + "N_NO_CONSENT\020\005\022+\n\'PROCESSING_ERROR_REASO" + + "N_UNKNOWN_CONSENT\020\006\022+\n\'PROCESSING_ERROR_" + + "REASON_DUPLICATE_GCLID\020\007\0224\n0PROCESSING_E" + + "RROR_REASON_DUPLICATE_TRANSACTION_ID\020\010\022*" + + "\n&PROCESSING_ERROR_REASON_INVALID_GBRAID" + + "\020\t\022)\n%PROCESSING_ERROR_REASON_INVALID_GC" + + "LID\020\n\022/\n+PROCESSING_ERROR_REASON_INVALID" + + "_MERCHANT_ID\020\013\022*\n&PROCESSING_ERROR_REASO" + + "N_INVALID_WBRAID\020\014\022*\n&PROCESSING_ERROR_R" + + "EASON_INTERNAL_ERROR\020\r\022U\nQPROCESSING_ERR" + + "OR_REASON_DESTINATION_ACCOUNT_ENHANCED_C" + + "ONVERSIONS_TERMS_NOT_SIGNED\020\016\022)\n%PROCESS" + + "ING_ERROR_REASON_INVALID_EVENT\020\017\022=\n9PROC" + + "ESSING_ERROR_REASON_INSUFFICIENT_MATCHED" + + "_TRANSACTIONS\020\020\0225\n1PROCESSING_ERROR_REAS" + + "ON_INSUFFICIENT_TRANSACTIONS\020\021\022*\n&PROCES" + + "SING_ERROR_REASON_INVALID_FORMAT\020\022\022,\n(PR" + + "OCESSING_ERROR_REASON_DECRYPTION_ERROR\020\023" + + "\0220\n,PROCESSING_ERROR_REASON_DEK_DECRYPTI" + + "ON_ERROR\020\024\022\'\n#PROCESSING_ERROR_REASON_IN" + + "VALID_WIP\020\025\022\'\n#PROCESSING_ERROR_REASON_I" + + "NVALID_KEK\020\026\022+\n\'PROCESSING_ERROR_REASON_" + + "WIP_AUTH_FAILED\020\027\0221\n-PROCESSING_ERROR_RE" + + "ASON_KEK_PERMISSION_DENIED\020\030\022+\n\'PROCESSI" + + "NG_ERROR_REASON_AWS_AUTH_FAILED\020\033\022<\n8PRO" + + "CESSING_ERROR_REASON_USER_IDENTIFIER_DEC" + + "RYPTION_ERROR\020\031\022A\n=PROCESSING_ERROR_OPER" + + "ATING_ACCOUNT_MISMATCH_FOR_AD_IDENTIFIER" + + "\020\032\022T\nPPROCESSING_ERROR_REASON_ONE_PER_CL" + + "ICK_CONVERSION_ACTION_NOT_PERMITTED_WITH" + + "_BRAID\020\034\022.\n*PROCESSING_ERROR_REASON_MATC" + + "H_ID_NOT_FOUND\020\035\022:\n6PROCESSING_ERROR_REA" + + "SON_USER_ID_NOT_FOUND_FOR_MATCH_ID\020\036\0227\n3" + + "PROCESSING_ERROR_REASON_USER_ID_NOT_FOUN" + + "D_FOR_GCLID\020\037\0227\n3PROCESSING_ERROR_REASON" + + "_USER_ID_NOT_FOUND_FOR_DCLID\020 \0222\n.PROCES" + + "SING_ERROR_REASON_INVALID_AD_IDENTIFIERS" + + "\020!\0224\n0PROCESSING_ERROR_REASON_INVALID_MO" + + "BILE_ID_FORMAT\020\"\022:\n6PROCESSING_ERROR_REA" + + "SON_ORIGINAL_CONVERSIONS_NOT_FOUND\020#\0221\n-" + + "PROCESSING_ERROR_REASON_EVENT_ID_DECODE_" + + "ERROR\020$\022?\n;PROCESSING_ERROR_REASON_USER_" + + "ID_NOT_FOUND_FOR_IMPRESSION_ID\020%\022-\n)PROC" + + "ESSING_ERROR_REASON_USER_ID_NOT_FOUND\020&\022" + + "5\n1PROCESSING_ERROR_REASON_CONVERSION_PR" + + "ECEDES_CLICK\020\'\022,\n(PROCESSING_ERROR_REASO" + + "N_TOO_RECENT_CLICK\020(\022)\n%PROCESSING_ERROR" + + "_REASON_INVALID_CLICK\020)\022?\n;PROCESSING_ER" + + "ROR_REASON_INVALID_OPERATING_ACCOUNT_FOR" + + "_CLICK\020*\022+\n\'PROCESSING_ERROR_REASON_CLIC" + + "K_NOT_FOUND\020+\022=\n9PROCESSING_ERROR_REASON" + + "_EXTERNAL_ATTRIBUTION_DATA_MISSING\020,*\377\003\n" + + "\027ProcessingWarningReason\022)\n%PROCESSING_W" + + "ARNING_REASON_UNSPECIFIED\020\000\0223\n/PROCESSIN" + + "G_WARNING_REASON_KEK_PERMISSION_DENIED\020\001" + + "\0222\n.PROCESSING_WARNING_REASON_DEK_DECRYP" + + "TION_ERROR\020\002\022.\n*PROCESSING_WARNING_REASO" + + "N_DECRYPTION_ERROR\020\003\022-\n)PROCESSING_WARNI" + + "NG_REASON_WIP_AUTH_FAILED\020\004\022)\n%PROCESSIN" + + "G_WARNING_REASON_INVALID_WIP\020\005\022)\n%PROCES" + + "SING_WARNING_REASON_INVALID_KEK\020\006\022>\n:PRO" + + "CESSING_WARNING_REASON_USER_IDENTIFIER_D" + + "ECRYPTION_ERROR\020\007\022,\n(PROCESSING_WARNING_" + + "REASON_INTERNAL_ERROR\020\010\022-\n)PROCESSING_WA" + + "RNING_REASON_AWS_AUTH_FAILED\020\t*\302\005\n\rWarni" + + "ngReason\022\036\n\032WARNING_REASON_UNSPECIFIED\020\000" + + "\022.\n*WARNING_REASON_CUSTOM_VARIABLE_NOT_E" + + "NABLED\020\001\0221\n-WARNING_REASON_CUSTOM_VARIAB" + + "LE_NOT_PREDEFINED\020\002\022@\n + * Request to remove all users from an audience in the provided destinations. + * Returns a + * [RemoveAllAudienceMembersResponse][google.ads.datamanager.v1.RemoveAllAudienceMembersResponse]. + *
+ * + * Protobuf type {@code google.ads.datamanager.v1.RemoveAllAudienceMembersRequest} + */ +@com.google.protobuf.Generated +public final class RemoveAllAudienceMembersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RemoveAllAudienceMembersRequest) + RemoveAllAudienceMembersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RemoveAllAudienceMembersRequest"); + } + + // Use RemoveAllAudienceMembersRequest.newBuilder() to construct. + private RemoveAllAudienceMembersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RemoveAllAudienceMembersRequest() { + destinations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest.class, + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest.Builder.class); + } + + private int bitField0_; + public static final int DESTINATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List destinations_; + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getDestinationsList() { + return destinations_; + } + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getDestinationsOrBuilderList() { + return destinations_; + } + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getDestinationsCount() { + return destinations_.size(); + } + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.Destination getDestinations(int index) { + return destinations_.get(index); + } + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.DestinationOrBuilder getDestinationsOrBuilder(int index) { + return destinations_.get(index); + } + + public static final int REMOVE_AS_OF_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp removeAsOfTime_; + + /** + * + * + *
+   * Optional. The remove as of time. If set, only audience members last added
+   * before this time will be removed. If not set, it defaults to current time.
+   * The remove as of time must not be in the future.
+   * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the removeAsOfTime field is set. + */ + @java.lang.Override + public boolean hasRemoveAsOfTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The remove as of time. If set, only audience members last added
+   * before this time will be removed. If not set, it defaults to current time.
+   * The remove as of time must not be in the future.
+   * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The removeAsOfTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRemoveAsOfTime() { + return removeAsOfTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : removeAsOfTime_; + } + + /** + * + * + *
+   * Optional. The remove as of time. If set, only audience members last added
+   * before this time will be removed. If not set, it defaults to current time.
+   * The remove as of time must not be in the future.
+   * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRemoveAsOfTimeOrBuilder() { + return removeAsOfTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : removeAsOfTime_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * Optional. For testing purposes. If `true`, the request is validated but not
+   * executed. Only errors are returned, not results.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 < destinations_.size(); i++) { + output.writeMessage(1, destinations_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRemoveAsOfTime()); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < destinations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, destinations_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRemoveAsOfTime()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest other = + (com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest) obj; + + if (!getDestinationsList().equals(other.getDestinationsList())) return false; + if (hasRemoveAsOfTime() != other.hasRemoveAsOfTime()) return false; + if (hasRemoveAsOfTime()) { + if (!getRemoveAsOfTime().equals(other.getRemoveAsOfTime())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDestinationsCount() > 0) { + hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationsList().hashCode(); + } + if (hasRemoveAsOfTime()) { + hash = (37 * hash) + REMOVE_AS_OF_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRemoveAsOfTime().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to remove all users from an audience in the provided destinations.
+   * Returns a
+   * [RemoveAllAudienceMembersResponse][google.ads.datamanager.v1.RemoveAllAudienceMembersResponse].
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.RemoveAllAudienceMembersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RemoveAllAudienceMembersRequest) + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest.class, + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDestinationsFieldBuilder(); + internalGetRemoveAsOfTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (destinationsBuilder_ == null) { + destinations_ = java.util.Collections.emptyList(); + } else { + destinations_ = null; + destinationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + removeAsOfTime_ = null; + if (removeAsOfTimeBuilder_ != null) { + removeAsOfTimeBuilder_.dispose(); + removeAsOfTimeBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest build() { + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest buildPartial() { + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest result = + new com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest result) { + if (destinationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + destinations_ = java.util.Collections.unmodifiableList(destinations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.destinations_ = destinations_; + } else { + result.destinations_ = destinationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.removeAsOfTime_ = + removeAsOfTimeBuilder_ == null ? removeAsOfTime_ : removeAsOfTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest) { + return mergeFrom((com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest other) { + if (other + == com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest.getDefaultInstance()) + return this; + if (destinationsBuilder_ == null) { + if (!other.destinations_.isEmpty()) { + if (destinations_.isEmpty()) { + destinations_ = other.destinations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDestinationsIsMutable(); + destinations_.addAll(other.destinations_); + } + onChanged(); + } + } else { + if (!other.destinations_.isEmpty()) { + if (destinationsBuilder_.isEmpty()) { + destinationsBuilder_.dispose(); + destinationsBuilder_ = null; + destinations_ = other.destinations_; + bitField0_ = (bitField0_ & ~0x00000001); + destinationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDestinationsFieldBuilder() + : null; + } else { + destinationsBuilder_.addAllMessages(other.destinations_); + } + } + } + if (other.hasRemoveAsOfTime()) { + mergeRemoveAsOfTime(other.getRemoveAsOfTime()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.ads.datamanager.v1.Destination m = + input.readMessage( + com.google.ads.datamanager.v1.Destination.parser(), extensionRegistry); + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(m); + } else { + destinationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetRemoveAsOfTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List destinations_ = + java.util.Collections.emptyList(); + + private void ensureDestinationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + destinations_ = + new java.util.ArrayList(destinations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.Destination, + com.google.ads.datamanager.v1.Destination.Builder, + com.google.ads.datamanager.v1.DestinationOrBuilder> + destinationsBuilder_; + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getDestinationsList() { + if (destinationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(destinations_); + } else { + return destinationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getDestinationsCount() { + if (destinationsBuilder_ == null) { + return destinations_.size(); + } else { + return destinationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.Destination getDestinations(int index) { + if (destinationsBuilder_ == null) { + return destinations_.get(index); + } else { + return destinationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestinations(int index, com.google.ads.datamanager.v1.Destination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.set(index, value); + onChanged(); + } else { + destinationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDestinations( + int index, com.google.ads.datamanager.v1.Destination.Builder builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.set(index, builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDestinations(com.google.ads.datamanager.v1.Destination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.add(value); + onChanged(); + } else { + destinationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDestinations(int index, com.google.ads.datamanager.v1.Destination value) { + if (destinationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDestinationsIsMutable(); + destinations_.add(index, value); + onChanged(); + } else { + destinationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDestinations( + com.google.ads.datamanager.v1.Destination.Builder builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addDestinations( + int index, com.google.ads.datamanager.v1.Destination.Builder builderForValue) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.add(index, builderForValue.build()); + onChanged(); + } else { + destinationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllDestinations( + java.lang.Iterable values) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, destinations_); + onChanged(); + } else { + destinationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDestinations() { + if (destinationsBuilder_ == null) { + destinations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + destinationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeDestinations(int index) { + if (destinationsBuilder_ == null) { + ensureDestinationsIsMutable(); + destinations_.remove(index); + onChanged(); + } else { + destinationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.Destination.Builder getDestinationsBuilder(int index) { + return internalGetDestinationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.DestinationOrBuilder getDestinationsOrBuilder(int index) { + if (destinationsBuilder_ == null) { + return destinations_.get(index); + } else { + return destinationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getDestinationsOrBuilderList() { + if (destinationsBuilder_ != null) { + return destinationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(destinations_); + } + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.Destination.Builder addDestinationsBuilder() { + return internalGetDestinationsFieldBuilder() + .addBuilder(com.google.ads.datamanager.v1.Destination.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.Destination.Builder addDestinationsBuilder(int index) { + return internalGetDestinationsFieldBuilder() + .addBuilder(index, com.google.ads.datamanager.v1.Destination.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The list of destinations to remove the users from.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getDestinationsBuilderList() { + return internalGetDestinationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.Destination, + com.google.ads.datamanager.v1.Destination.Builder, + com.google.ads.datamanager.v1.DestinationOrBuilder> + internalGetDestinationsFieldBuilder() { + if (destinationsBuilder_ == null) { + destinationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.Destination, + com.google.ads.datamanager.v1.Destination.Builder, + com.google.ads.datamanager.v1.DestinationOrBuilder>( + destinations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + destinations_ = null; + } + return destinationsBuilder_; + } + + private com.google.protobuf.Timestamp removeAsOfTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + removeAsOfTimeBuilder_; + + /** + * + * + *
+     * Optional. The remove as of time. If set, only audience members last added
+     * before this time will be removed. If not set, it defaults to current time.
+     * The remove as of time must not be in the future.
+     * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the removeAsOfTime field is set. + */ + public boolean hasRemoveAsOfTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The remove as of time. If set, only audience members last added
+     * before this time will be removed. If not set, it defaults to current time.
+     * The remove as of time must not be in the future.
+     * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The removeAsOfTime. + */ + public com.google.protobuf.Timestamp getRemoveAsOfTime() { + if (removeAsOfTimeBuilder_ == null) { + return removeAsOfTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : removeAsOfTime_; + } else { + return removeAsOfTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The remove as of time. If set, only audience members last added
+     * before this time will be removed. If not set, it defaults to current time.
+     * The remove as of time must not be in the future.
+     * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemoveAsOfTime(com.google.protobuf.Timestamp value) { + if (removeAsOfTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + removeAsOfTime_ = value; + } else { + removeAsOfTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The remove as of time. If set, only audience members last added
+     * before this time will be removed. If not set, it defaults to current time.
+     * The remove as of time must not be in the future.
+     * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRemoveAsOfTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (removeAsOfTimeBuilder_ == null) { + removeAsOfTime_ = builderForValue.build(); + } else { + removeAsOfTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The remove as of time. If set, only audience members last added
+     * before this time will be removed. If not set, it defaults to current time.
+     * The remove as of time must not be in the future.
+     * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRemoveAsOfTime(com.google.protobuf.Timestamp value) { + if (removeAsOfTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && removeAsOfTime_ != null + && removeAsOfTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRemoveAsOfTimeBuilder().mergeFrom(value); + } else { + removeAsOfTime_ = value; + } + } else { + removeAsOfTimeBuilder_.mergeFrom(value); + } + if (removeAsOfTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The remove as of time. If set, only audience members last added
+     * before this time will be removed. If not set, it defaults to current time.
+     * The remove as of time must not be in the future.
+     * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRemoveAsOfTime() { + bitField0_ = (bitField0_ & ~0x00000002); + removeAsOfTime_ = null; + if (removeAsOfTimeBuilder_ != null) { + removeAsOfTimeBuilder_.dispose(); + removeAsOfTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The remove as of time. If set, only audience members last added
+     * before this time will be removed. If not set, it defaults to current time.
+     * The remove as of time must not be in the future.
+     * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getRemoveAsOfTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRemoveAsOfTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The remove as of time. If set, only audience members last added
+     * before this time will be removed. If not set, it defaults to current time.
+     * The remove as of time must not be in the future.
+     * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRemoveAsOfTimeOrBuilder() { + if (removeAsOfTimeBuilder_ != null) { + return removeAsOfTimeBuilder_.getMessageOrBuilder(); + } else { + return removeAsOfTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : removeAsOfTime_; + } + } + + /** + * + * + *
+     * Optional. The remove as of time. If set, only audience members last added
+     * before this time will be removed. If not set, it defaults to current time.
+     * The remove as of time must not be in the future.
+     * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetRemoveAsOfTimeFieldBuilder() { + if (removeAsOfTimeBuilder_ == null) { + removeAsOfTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRemoveAsOfTime(), getParentForChildren(), isClean()); + removeAsOfTime_ = null; + } + return removeAsOfTimeBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * Optional. For testing purposes. If `true`, the request is validated but not
+     * executed. Only errors are returned, not results.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * Optional. For testing purposes. If `true`, the request is validated but not
+     * executed. Only errors are returned, not results.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. For testing purposes. If `true`, the request is validated but not
+     * executed. Only errors are returned, not results.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RemoveAllAudienceMembersRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RemoveAllAudienceMembersRequest) + private static final com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest(); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveAllAudienceMembersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersRequestOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersRequestOrBuilder.java new file mode 100644 index 000000000000..4e889e9fadd7 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ingestion_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface RemoveAllAudienceMembersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RemoveAllAudienceMembersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getDestinationsList(); + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.datamanager.v1.Destination getDestinations(int index); + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getDestinationsCount(); + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getDestinationsOrBuilderList(); + + /** + * + * + *
+   * Required. The list of destinations to remove the users from.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.Destination destinations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.datamanager.v1.DestinationOrBuilder getDestinationsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The remove as of time. If set, only audience members last added
+   * before this time will be removed. If not set, it defaults to current time.
+   * The remove as of time must not be in the future.
+   * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the removeAsOfTime field is set. + */ + boolean hasRemoveAsOfTime(); + + /** + * + * + *
+   * Optional. The remove as of time. If set, only audience members last added
+   * before this time will be removed. If not set, it defaults to current time.
+   * The remove as of time must not be in the future.
+   * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The removeAsOfTime. + */ + com.google.protobuf.Timestamp getRemoveAsOfTime(); + + /** + * + * + *
+   * Optional. The remove as of time. If set, only audience members last added
+   * before this time will be removed. If not set, it defaults to current time.
+   * The remove as of time must not be in the future.
+   * 
+ * + * + * .google.protobuf.Timestamp remove_as_of_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getRemoveAsOfTimeOrBuilder(); + + /** + * + * + *
+   * Optional. For testing purposes. If `true`, the request is validated but not
+   * executed. Only errors are returned, not results.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersResponse.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersResponse.java new file mode 100644 index 000000000000..4204c3d1090f --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersResponse.java @@ -0,0 +1,606 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ingestion_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Response from the
+ * [RemoveAllAudienceMembersRequest][google.ads.datamanager.v1.RemoveAllAudienceMembersRequest].
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.RemoveAllAudienceMembersResponse} + */ +@com.google.protobuf.Generated +public final class RemoveAllAudienceMembersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RemoveAllAudienceMembersResponse) + RemoveAllAudienceMembersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RemoveAllAudienceMembersResponse"); + } + + // Use RemoveAllAudienceMembersResponse.newBuilder() to construct. + private RemoveAllAudienceMembersResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RemoveAllAudienceMembersResponse() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse.class, + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse.Builder.class); + } + + public static final int REQUEST_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * The auto-generated ID of the request.
+   * 
+ * + * string request_id = 1; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * The auto-generated ID of the request.
+   * 
+ * + * string request_id = 1; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse other = + (com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse) obj; + + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response from the
+   * [RemoveAllAudienceMembersRequest][google.ads.datamanager.v1.RemoveAllAudienceMembersRequest].
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.RemoveAllAudienceMembersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RemoveAllAudienceMembersResponse) + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse.class, + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_RemoveAllAudienceMembersResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse build() { + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse buildPartial() { + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse result = + new com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse) { + return mergeFrom((com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse other) { + if (other + == com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse.getDefaultInstance()) + return this; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * The auto-generated ID of the request.
+     * 
+ * + * string request_id = 1; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The auto-generated ID of the request.
+     * 
+ * + * string request_id = 1; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The auto-generated ID of the request.
+     * 
+ * + * string request_id = 1; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The auto-generated ID of the request.
+     * 
+ * + * string request_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The auto-generated ID of the request.
+     * 
+ * + * string request_id = 1; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RemoveAllAudienceMembersResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RemoveAllAudienceMembersResponse) + private static final com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse(); + } + + public static com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveAllAudienceMembersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersResponseOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersResponseOrBuilder.java new file mode 100644 index 000000000000..c120047de9dd --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RemoveAllAudienceMembersResponseOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ingestion_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface RemoveAllAudienceMembersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RemoveAllAudienceMembersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The auto-generated ID of the request.
+   * 
+ * + * string request_id = 1; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * The auto-generated ID of the request.
+   * 
+ * + * string request_id = 1; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestination.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestination.java index 10b0dd885aa1..f48c813a7672 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestination.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestination.java @@ -803,6 +803,100 @@ public interface IngestAudienceMembersStatusOrBuilder com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatusOrBuilder getCompositeDataIngestionStatusOrBuilder(); + /** + * + * + *
+     * The status of the google user id data ingestion to the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + * + * @return Whether the googleUserIdDataIngestionStatus field is set. + */ + boolean hasGoogleUserIdDataIngestionStatus(); + + /** + * + * + *
+     * The status of the google user id data ingestion to the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + * + * @return The googleUserIdDataIngestionStatus. + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + getGoogleUserIdDataIngestionStatus(); + + /** + * + * + *
+     * The status of the google user id data ingestion to the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatusOrBuilder + getGoogleUserIdDataIngestionStatusOrBuilder(); + + /** + * + * + *
+     * The status of the partner provided id data ingestion to the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + * + * @return Whether the partnerProvidedIdDataIngestionStatus field is set. + */ + boolean hasPartnerProvidedIdDataIngestionStatus(); + + /** + * + * + *
+     * The status of the partner provided id data ingestion to the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + * + * @return The partnerProvidedIdDataIngestionStatus. + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus + getPartnerProvidedIdDataIngestionStatus(); + + /** + * + * + *
+     * The status of the partner provided id data ingestion to the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatusOrBuilder + getPartnerProvidedIdDataIngestionStatusOrBuilder(); + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestAudienceMembersStatus.StatusCase getStatusCase(); } @@ -872,6 +966,8 @@ public enum StatusCase USER_ID_DATA_INGESTION_STATUS(4), PPID_DATA_INGESTION_STATUS(5), COMPOSITE_DATA_INGESTION_STATUS(6), + GOOGLE_USER_ID_DATA_INGESTION_STATUS(7), + PARTNER_PROVIDED_ID_DATA_INGESTION_STATUS(8), STATUS_NOT_SET(0); private final int value; @@ -903,6 +999,10 @@ public static StatusCase forNumber(int value) { return PPID_DATA_INGESTION_STATUS; case 6: return COMPOSITE_DATA_INGESTION_STATUS; + case 7: + return GOOGLE_USER_ID_DATA_INGESTION_STATUS; + case 8: + return PARTNER_PROVIDED_ID_DATA_INGESTION_STATUS; case 0: return STATUS_NOT_SET; default: @@ -1316,6 +1416,148 @@ public boolean hasCompositeDataIngestionStatus() { .getDefaultInstance(); } + public static final int GOOGLE_USER_ID_DATA_INGESTION_STATUS_FIELD_NUMBER = 7; + + /** + * + * + *
+     * The status of the google user id data ingestion to the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + * + * @return Whether the googleUserIdDataIngestionStatus field is set. + */ + @java.lang.Override + public boolean hasGoogleUserIdDataIngestionStatus() { + return statusCase_ == 7; + } + + /** + * + * + *
+     * The status of the google user id data ingestion to the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + * + * @return The googleUserIdDataIngestionStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + getGoogleUserIdDataIngestionStatus() { + if (statusCase_ == 7) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + .getDefaultInstance(); + } + + /** + * + * + *
+     * The status of the google user id data ingestion to the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatusOrBuilder + getGoogleUserIdDataIngestionStatusOrBuilder() { + if (statusCase_ == 7) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + .getDefaultInstance(); + } + + public static final int PARTNER_PROVIDED_ID_DATA_INGESTION_STATUS_FIELD_NUMBER = 8; + + /** + * + * + *
+     * The status of the partner provided id data ingestion to the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + * + * @return Whether the partnerProvidedIdDataIngestionStatus field is set. + */ + @java.lang.Override + public boolean hasPartnerProvidedIdDataIngestionStatus() { + return statusCase_ == 8; + } + + /** + * + * + *
+     * The status of the partner provided id data ingestion to the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + * + * @return The partnerProvidedIdDataIngestionStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + getPartnerProvidedIdDataIngestionStatus() { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.getDefaultInstance(); + } + + /** + * + * + *
+     * The status of the partner provided id data ingestion to the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatusOrBuilder + getPartnerProvidedIdDataIngestionStatusOrBuilder() { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1366,6 +1608,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) status_); } + if (statusCase_ == 7) { + output.writeMessage( + 7, + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus) + status_); + } + if (statusCase_ == 8) { + output.writeMessage( + 8, + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + status_); + } getUnknownFields().writeTo(output); } @@ -1418,6 +1673,22 @@ public int getSerializedSize() { .IngestCompositeDataStatus) status_); } + if (statusCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus) + status_); + } + if (statusCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + status_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1463,6 +1734,14 @@ public boolean equals(final java.lang.Object obj) { if (!getCompositeDataIngestionStatus().equals(other.getCompositeDataIngestionStatus())) return false; break; + case 7: + if (!getGoogleUserIdDataIngestionStatus() + .equals(other.getGoogleUserIdDataIngestionStatus())) return false; + break; + case 8: + if (!getPartnerProvidedIdDataIngestionStatus() + .equals(other.getPartnerProvidedIdDataIngestionStatus())) return false; + break; case 0: default: } @@ -1502,6 +1781,14 @@ public int hashCode() { hash = (37 * hash) + COMPOSITE_DATA_INGESTION_STATUS_FIELD_NUMBER; hash = (53 * hash) + getCompositeDataIngestionStatus().hashCode(); break; + case 7: + hash = (37 * hash) + GOOGLE_USER_ID_DATA_INGESTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleUserIdDataIngestionStatus().hashCode(); + break; + case 8: + hash = (37 * hash) + PARTNER_PROVIDED_ID_DATA_INGESTION_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getPartnerProvidedIdDataIngestionStatus().hashCode(); + break; case 0: default: } @@ -1688,6 +1975,12 @@ public Builder clear() { if (compositeDataIngestionStatusBuilder_ != null) { compositeDataIngestionStatusBuilder_.clear(); } + if (googleUserIdDataIngestionStatusBuilder_ != null) { + googleUserIdDataIngestionStatusBuilder_.clear(); + } + if (partnerProvidedIdDataIngestionStatusBuilder_ != null) { + partnerProvidedIdDataIngestionStatusBuilder_.clear(); + } statusCase_ = 0; status_ = null; return this; @@ -1761,6 +2054,12 @@ private void buildPartialOneofs( if (statusCase_ == 6 && compositeDataIngestionStatusBuilder_ != null) { result.status_ = compositeDataIngestionStatusBuilder_.build(); } + if (statusCase_ == 7 && googleUserIdDataIngestionStatusBuilder_ != null) { + result.status_ = googleUserIdDataIngestionStatusBuilder_.build(); + } + if (statusCase_ == 8 && partnerProvidedIdDataIngestionStatusBuilder_ != null) { + result.status_ = partnerProvidedIdDataIngestionStatusBuilder_.build(); + } } @java.lang.Override @@ -1815,6 +2114,17 @@ public Builder mergeFrom( mergeCompositeDataIngestionStatus(other.getCompositeDataIngestionStatus()); break; } + case GOOGLE_USER_ID_DATA_INGESTION_STATUS: + { + mergeGoogleUserIdDataIngestionStatus(other.getGoogleUserIdDataIngestionStatus()); + break; + } + case PARTNER_PROVIDED_ID_DATA_INGESTION_STATUS: + { + mergePartnerProvidedIdDataIngestionStatus( + other.getPartnerProvidedIdDataIngestionStatus()); + break; + } case STATUS_NOT_SET: { break; @@ -1894,6 +2204,22 @@ public Builder mergeFrom( statusCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + internalGetGoogleUserIdDataIngestionStatusFieldBuilder().getBuilder(), + extensionRegistry); + statusCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetPartnerProvidedIdDataIngestionStatusFieldBuilder().getBuilder(), + extensionRegistry); + statusCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3510,186 +3836,742 @@ public Builder clearCompositeDataIngestionStatus() { return compositeDataIngestionStatusBuilder_; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestAudienceMembersStatus) - } - - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestAudienceMembersStatus) - private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestAudienceMembersStatus - DEFAULT_INSTANCE; + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatusOrBuilder> + googleUserIdDataIngestionStatusBuilder_; - static { - DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestAudienceMembersStatus(); - } + /** + * + * + *
+       * The status of the google user id data ingestion to the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + * + * @return Whether the googleUserIdDataIngestionStatus field is set. + */ + @java.lang.Override + public boolean hasGoogleUserIdDataIngestionStatus() { + return statusCase_ == 7; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestAudienceMembersStatus - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
+       * The status of the google user id data ingestion to the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + * + * @return The googleUserIdDataIngestionStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + getGoogleUserIdDataIngestionStatus() { + if (googleUserIdDataIngestionStatusBuilder_ == null) { + if (statusCase_ == 7) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.getDefaultInstance(); + } else { + if (statusCase_ == 7) { + return googleUserIdDataIngestionStatusBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.getDefaultInstance(); + } + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IngestAudienceMembersStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + /** + * + * + *
+       * The status of the google user id data ingestion to the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + */ + public Builder setGoogleUserIdDataIngestionStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + value) { + if (googleUserIdDataIngestionStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + status_ = value; + onChanged(); + } else { + googleUserIdDataIngestionStatusBuilder_.setMessage(value); + } + statusCase_ = 7; + return this; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
+       * The status of the google user id data ingestion to the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + */ + public Builder setGoogleUserIdDataIngestionStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + .Builder + builderForValue) { + if (googleUserIdDataIngestionStatusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + googleUserIdDataIngestionStatusBuilder_.setMessage(builderForValue.build()); + } + statusCase_ = 7; + return this; + } - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestAudienceMembersStatus - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
+       * The status of the google user id data ingestion to the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + */ + public Builder mergeGoogleUserIdDataIngestionStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + value) { + if (googleUserIdDataIngestionStatusBuilder_ == null) { + if (statusCase_ == 7 + && status_ + != com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.getDefaultInstance()) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.newBuilder( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus) + status_) + .mergeFrom(value) + .buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + if (statusCase_ == 7) { + googleUserIdDataIngestionStatusBuilder_.mergeFrom(value); + } else { + googleUserIdDataIngestionStatusBuilder_.setMessage(value); + } + } + statusCase_ = 7; + return this; + } - public interface RemoveAudienceMembersStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatus) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+       * The status of the google user id data ingestion to the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + */ + public Builder clearGoogleUserIdDataIngestionStatus() { + if (googleUserIdDataIngestionStatusBuilder_ == null) { + if (statusCase_ == 7) { + statusCase_ = 0; + status_ = null; + onChanged(); + } + } else { + if (statusCase_ == 7) { + statusCase_ = 0; + status_ = null; + } + googleUserIdDataIngestionStatusBuilder_.clear(); + } + return this; + } - /** - * - * - *
-     * The status of the user data removal from the destination.
-     * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus user_data_removal_status = 1; - * - * - * @return Whether the userDataRemovalStatus field is set. - */ - boolean hasUserDataRemovalStatus(); + /** + * + * + *
+       * The status of the google user id data ingestion to the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + .Builder + getGoogleUserIdDataIngestionStatusBuilder() { + return internalGetGoogleUserIdDataIngestionStatusFieldBuilder().getBuilder(); + } - /** - * - * - *
-     * The status of the user data removal from the destination.
-     * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus user_data_removal_status = 1; - * - * - * @return The userDataRemovalStatus. - */ - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus - getUserDataRemovalStatus(); + /** + * + * + *
+       * The status of the google user id data ingestion to the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatusOrBuilder + getGoogleUserIdDataIngestionStatusOrBuilder() { + if ((statusCase_ == 7) && (googleUserIdDataIngestionStatusBuilder_ != null)) { + return googleUserIdDataIngestionStatusBuilder_.getMessageOrBuilder(); + } else { + if (statusCase_ == 7) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.getDefaultInstance(); + } + } - /** - * - * - *
-     * The status of the user data removal from the destination.
-     * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus user_data_removal_status = 1; - * - */ - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatusOrBuilder - getUserDataRemovalStatusOrBuilder(); + /** + * + * + *
+       * The status of the google user id data ingestion to the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatusOrBuilder> + internalGetGoogleUserIdDataIngestionStatusFieldBuilder() { + if (googleUserIdDataIngestionStatusBuilder_ == null) { + if (!(statusCase_ == 7)) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.getDefaultInstance(); + } + googleUserIdDataIngestionStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatusOrBuilder>( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus) + status_, + getParentForChildren(), + isClean()); + status_ = null; + } + statusCase_ = 7; + onChanged(); + return googleUserIdDataIngestionStatusBuilder_; + } - /** - * - * - *
-     * The status of the mobile data removal from the destination.
-     * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus mobile_data_removal_status = 2; - * - * - * @return Whether the mobileDataRemovalStatus field is set. - */ - boolean hasMobileDataRemovalStatus(); + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatusOrBuilder> + partnerProvidedIdDataIngestionStatusBuilder_; - /** - * - * - *
-     * The status of the mobile data removal from the destination.
-     * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus mobile_data_removal_status = 2; - * - * - * @return The mobileDataRemovalStatus. - */ - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus - getMobileDataRemovalStatus(); + /** + * + * + *
+       * The status of the partner provided id data ingestion to the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + * + * @return Whether the partnerProvidedIdDataIngestionStatus field is set. + */ + @java.lang.Override + public boolean hasPartnerProvidedIdDataIngestionStatus() { + return statusCase_ == 8; + } - /** - * - * + /** + * + * + *
+       * The status of the partner provided id data ingestion to the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + * + * @return The partnerProvidedIdDataIngestionStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + getPartnerProvidedIdDataIngestionStatus() { + if (partnerProvidedIdDataIngestionStatusBuilder_ == null) { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.getDefaultInstance(); + } else { + if (statusCase_ == 8) { + return partnerProvidedIdDataIngestionStatusBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the partner provided id data ingestion to the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + */ + public Builder setPartnerProvidedIdDataIngestionStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + value) { + if (partnerProvidedIdDataIngestionStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + partnerProvidedIdDataIngestionStatusBuilder_.setMessage(value); + } + statusCase_ = 8; + return this; + } + + /** + * + * + *
+       * The status of the partner provided id data ingestion to the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + */ + public Builder setPartnerProvidedIdDataIngestionStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.Builder + builderForValue) { + if (partnerProvidedIdDataIngestionStatusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + partnerProvidedIdDataIngestionStatusBuilder_.setMessage(builderForValue.build()); + } + statusCase_ = 8; + return this; + } + + /** + * + * + *
+       * The status of the partner provided id data ingestion to the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + */ + public Builder mergePartnerProvidedIdDataIngestionStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + value) { + if (partnerProvidedIdDataIngestionStatusBuilder_ == null) { + if (statusCase_ == 8 + && status_ + != com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.getDefaultInstance()) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.newBuilder( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + status_) + .mergeFrom(value) + .buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + if (statusCase_ == 8) { + partnerProvidedIdDataIngestionStatusBuilder_.mergeFrom(value); + } else { + partnerProvidedIdDataIngestionStatusBuilder_.setMessage(value); + } + } + statusCase_ = 8; + return this; + } + + /** + * + * + *
+       * The status of the partner provided id data ingestion to the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + */ + public Builder clearPartnerProvidedIdDataIngestionStatus() { + if (partnerProvidedIdDataIngestionStatusBuilder_ == null) { + if (statusCase_ == 8) { + statusCase_ = 0; + status_ = null; + onChanged(); + } + } else { + if (statusCase_ == 8) { + statusCase_ = 0; + status_ = null; + } + partnerProvidedIdDataIngestionStatusBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The status of the partner provided id data ingestion to the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.Builder + getPartnerProvidedIdDataIngestionStatusBuilder() { + return internalGetPartnerProvidedIdDataIngestionStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The status of the partner provided id data ingestion to the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatusOrBuilder + getPartnerProvidedIdDataIngestionStatusOrBuilder() { + if ((statusCase_ == 8) && (partnerProvidedIdDataIngestionStatusBuilder_ != null)) { + return partnerProvidedIdDataIngestionStatusBuilder_.getMessageOrBuilder(); + } else { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the partner provided id data ingestion to the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus partner_provided_id_data_ingestion_status = 8; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatusOrBuilder> + internalGetPartnerProvidedIdDataIngestionStatusFieldBuilder() { + if (partnerProvidedIdDataIngestionStatusBuilder_ == null) { + if (!(statusCase_ == 8)) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.getDefaultInstance(); + } + partnerProvidedIdDataIngestionStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatusOrBuilder>( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + status_, + getParentForChildren(), + isClean()); + status_ = null; + } + statusCase_ = 8; + onChanged(); + return partnerProvidedIdDataIngestionStatusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestAudienceMembersStatus) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestAudienceMembersStatus) + private static final com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestAudienceMembersStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestAudienceMembersStatus(); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestAudienceMembersStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestAudienceMembersStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestAudienceMembersStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RemoveAudienceMembersStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * *
-     * The status of the mobile data removal from the destination.
+     * The status of the user data removal from the destination.
      * 
* * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus mobile_data_removal_status = 2; + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus user_data_removal_status = 1; * + * + * @return Whether the userDataRemovalStatus field is set. */ - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatusOrBuilder - getMobileDataRemovalStatusOrBuilder(); + boolean hasUserDataRemovalStatus(); /** * * *
-     * The status of the pair data removal from the destination.
+     * The status of the user data removal from the destination.
      * 
* * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus pair_data_removal_status = 3; + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus user_data_removal_status = 1; * * - * @return Whether the pairDataRemovalStatus field is set. + * @return The userDataRemovalStatus. */ - boolean hasPairDataRemovalStatus(); + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + getUserDataRemovalStatus(); /** * * *
-     * The status of the pair data removal from the destination.
+     * The status of the user data removal from the destination.
      * 
* * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus pair_data_removal_status = 3; + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus user_data_removal_status = 1; * - * + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatusOrBuilder + getUserDataRemovalStatusOrBuilder(); + + /** + * + * + *
+     * The status of the mobile data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus mobile_data_removal_status = 2; + * + * + * @return Whether the mobileDataRemovalStatus field is set. + */ + boolean hasMobileDataRemovalStatus(); + + /** + * + * + *
+     * The status of the mobile data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus mobile_data_removal_status = 2; + * + * + * @return The mobileDataRemovalStatus. + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + getMobileDataRemovalStatus(); + + /** + * + * + *
+     * The status of the mobile data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus mobile_data_removal_status = 2; + * + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatusOrBuilder + getMobileDataRemovalStatusOrBuilder(); + + /** + * + * + *
+     * The status of the pair data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus pair_data_removal_status = 3; + * + * + * @return Whether the pairDataRemovalStatus field is set. + */ + boolean hasPairDataRemovalStatus(); + + /** + * + * + *
+     * The status of the pair data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus pair_data_removal_status = 3; + * + * * @return The pairDataRemovalStatus. */ com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus @@ -3844,6 +4726,100 @@ public interface RemoveAudienceMembersStatusOrBuilder com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatusOrBuilder getCompositeDataRemovalStatusOrBuilder(); + /** + * + * + *
+     * The status of the google user id data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + * + * @return Whether the googleUserIdDataRemovalStatus field is set. + */ + boolean hasGoogleUserIdDataRemovalStatus(); + + /** + * + * + *
+     * The status of the google user id data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + * + * @return The googleUserIdDataRemovalStatus. + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + getGoogleUserIdDataRemovalStatus(); + + /** + * + * + *
+     * The status of the google user id data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatusOrBuilder + getGoogleUserIdDataRemovalStatusOrBuilder(); + + /** + * + * + *
+     * The status of the partner provided id data removal from the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + * + * @return Whether the partnerProvidedIdDataRemovalStatus field is set. + */ + boolean hasPartnerProvidedIdDataRemovalStatus(); + + /** + * + * + *
+     * The status of the partner provided id data removal from the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + * + * @return The partnerProvidedIdDataRemovalStatus. + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus + getPartnerProvidedIdDataRemovalStatus(); + + /** + * + * + *
+     * The status of the partner provided id data removal from the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatusOrBuilder + getPartnerProvidedIdDataRemovalStatusOrBuilder(); + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatus.StatusCase getStatusCase(); } @@ -3913,6 +4889,8 @@ public enum StatusCase USER_ID_DATA_REMOVAL_STATUS(4), PPID_DATA_REMOVAL_STATUS(5), COMPOSITE_DATA_REMOVAL_STATUS(6), + GOOGLE_USER_ID_DATA_REMOVAL_STATUS(7), + PARTNER_PROVIDED_ID_DATA_REMOVAL_STATUS(8), STATUS_NOT_SET(0); private final int value; @@ -3944,6 +4922,10 @@ public static StatusCase forNumber(int value) { return PPID_DATA_REMOVAL_STATUS; case 6: return COMPOSITE_DATA_REMOVAL_STATUS; + case 7: + return GOOGLE_USER_ID_DATA_REMOVAL_STATUS; + case 8: + return PARTNER_PROVIDED_ID_DATA_REMOVAL_STATUS; case 0: return STATUS_NOT_SET; default: @@ -4357,6 +5339,148 @@ public boolean hasCompositeDataRemovalStatus() { .getDefaultInstance(); } + public static final int GOOGLE_USER_ID_DATA_REMOVAL_STATUS_FIELD_NUMBER = 7; + + /** + * + * + *
+     * The status of the google user id data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + * + * @return Whether the googleUserIdDataRemovalStatus field is set. + */ + @java.lang.Override + public boolean hasGoogleUserIdDataRemovalStatus() { + return statusCase_ == 7; + } + + /** + * + * + *
+     * The status of the google user id data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + * + * @return The googleUserIdDataRemovalStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + getGoogleUserIdDataRemovalStatus() { + if (statusCase_ == 7) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + .getDefaultInstance(); + } + + /** + * + * + *
+     * The status of the google user id data removal from the destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatusOrBuilder + getGoogleUserIdDataRemovalStatusOrBuilder() { + if (statusCase_ == 7) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + .getDefaultInstance(); + } + + public static final int PARTNER_PROVIDED_ID_DATA_REMOVAL_STATUS_FIELD_NUMBER = 8; + + /** + * + * + *
+     * The status of the partner provided id data removal from the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + * + * @return Whether the partnerProvidedIdDataRemovalStatus field is set. + */ + @java.lang.Override + public boolean hasPartnerProvidedIdDataRemovalStatus() { + return statusCase_ == 8; + } + + /** + * + * + *
+     * The status of the partner provided id data removal from the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + * + * @return The partnerProvidedIdDataRemovalStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + getPartnerProvidedIdDataRemovalStatus() { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.getDefaultInstance(); + } + + /** + * + * + *
+     * The status of the partner provided id data removal from the
+     * destination.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatusOrBuilder + getPartnerProvidedIdDataRemovalStatusOrBuilder() { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4407,6 +5531,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) status_); } + if (statusCase_ == 7) { + output.writeMessage( + 7, + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus) + status_); + } + if (statusCase_ == 8) { + output.writeMessage( + 8, + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + status_); + } getUnknownFields().writeTo(output); } @@ -4459,6 +5596,22 @@ public int getSerializedSize() { .RemoveCompositeDataStatus) status_); } + if (statusCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus) + status_); + } + if (statusCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + status_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4501,6 +5654,14 @@ public boolean equals(final java.lang.Object obj) { if (!getCompositeDataRemovalStatus().equals(other.getCompositeDataRemovalStatus())) return false; break; + case 7: + if (!getGoogleUserIdDataRemovalStatus().equals(other.getGoogleUserIdDataRemovalStatus())) + return false; + break; + case 8: + if (!getPartnerProvidedIdDataRemovalStatus() + .equals(other.getPartnerProvidedIdDataRemovalStatus())) return false; + break; case 0: default: } @@ -4540,6 +5701,14 @@ public int hashCode() { hash = (37 * hash) + COMPOSITE_DATA_REMOVAL_STATUS_FIELD_NUMBER; hash = (53 * hash) + getCompositeDataRemovalStatus().hashCode(); break; + case 7: + hash = (37 * hash) + GOOGLE_USER_ID_DATA_REMOVAL_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleUserIdDataRemovalStatus().hashCode(); + break; + case 8: + hash = (37 * hash) + PARTNER_PROVIDED_ID_DATA_REMOVAL_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getPartnerProvidedIdDataRemovalStatus().hashCode(); + break; case 0: default: } @@ -4726,6 +5895,12 @@ public Builder clear() { if (compositeDataRemovalStatusBuilder_ != null) { compositeDataRemovalStatusBuilder_.clear(); } + if (googleUserIdDataRemovalStatusBuilder_ != null) { + googleUserIdDataRemovalStatusBuilder_.clear(); + } + if (partnerProvidedIdDataRemovalStatusBuilder_ != null) { + partnerProvidedIdDataRemovalStatusBuilder_.clear(); + } statusCase_ = 0; status_ = null; return this; @@ -4799,6 +5974,12 @@ private void buildPartialOneofs( if (statusCase_ == 6 && compositeDataRemovalStatusBuilder_ != null) { result.status_ = compositeDataRemovalStatusBuilder_.build(); } + if (statusCase_ == 7 && googleUserIdDataRemovalStatusBuilder_ != null) { + result.status_ = googleUserIdDataRemovalStatusBuilder_.build(); + } + if (statusCase_ == 8 && partnerProvidedIdDataRemovalStatusBuilder_ != null) { + result.status_ = partnerProvidedIdDataRemovalStatusBuilder_.build(); + } } @java.lang.Override @@ -4853,7 +6034,18 @@ public Builder mergeFrom( mergeCompositeDataRemovalStatus(other.getCompositeDataRemovalStatus()); break; } - case STATUS_NOT_SET: + case GOOGLE_USER_ID_DATA_REMOVAL_STATUS: + { + mergeGoogleUserIdDataRemovalStatus(other.getGoogleUserIdDataRemovalStatus()); + break; + } + case PARTNER_PROVIDED_ID_DATA_REMOVAL_STATUS: + { + mergePartnerProvidedIdDataRemovalStatus( + other.getPartnerProvidedIdDataRemovalStatus()); + break; + } + case STATUS_NOT_SET: { break; } @@ -4932,6 +6124,22 @@ public Builder mergeFrom( statusCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + internalGetGoogleUserIdDataRemovalStatusFieldBuilder().getBuilder(), + extensionRegistry); + statusCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetPartnerProvidedIdDataRemovalStatusFieldBuilder().getBuilder(), + extensionRegistry); + statusCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5861,506 +7069,2964 @@ public Builder setUserIdDataRemovalStatus( return this; } - /** - * - * - *
-       * The status of the user id data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; - * - */ - public Builder mergeUserIdDataRemovalStatus( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus value) { - if (userIdDataRemovalStatusBuilder_ == null) { - if (statusCase_ == 4 - && status_ - != com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveUserIdDataStatus.getDefaultInstance()) { - status_ = - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus - .newBuilder( - (com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveUserIdDataStatus) - status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - if (statusCase_ == 4) { - userIdDataRemovalStatusBuilder_.mergeFrom(value); - } else { - userIdDataRemovalStatusBuilder_.setMessage(value); - } - } - statusCase_ = 4; - return this; + /** + * + * + *
+       * The status of the user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; + * + */ + public Builder mergeUserIdDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus value) { + if (userIdDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 4 + && status_ + != com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveUserIdDataStatus.getDefaultInstance()) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + .newBuilder( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveUserIdDataStatus) + status_) + .mergeFrom(value) + .buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + if (statusCase_ == 4) { + userIdDataRemovalStatusBuilder_.mergeFrom(value); + } else { + userIdDataRemovalStatusBuilder_.setMessage(value); + } + } + statusCase_ = 4; + return this; + } + + /** + * + * + *
+       * The status of the user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; + * + */ + public Builder clearUserIdDataRemovalStatus() { + if (userIdDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 4) { + statusCase_ = 0; + status_ = null; + onChanged(); + } + } else { + if (statusCase_ == 4) { + statusCase_ = 0; + status_ = null; + } + userIdDataRemovalStatusBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The status of the user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + .Builder + getUserIdDataRemovalStatusBuilder() { + return internalGetUserIdDataRemovalStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The status of the user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveUserIdDataStatusOrBuilder + getUserIdDataRemovalStatusOrBuilder() { + if ((statusCase_ == 4) && (userIdDataRemovalStatusBuilder_ != null)) { + return userIdDataRemovalStatusBuilder_.getMessageOrBuilder(); + } else { + if (statusCase_ == 4) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveUserIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveUserIdDataStatusOrBuilder> + internalGetUserIdDataRemovalStatusFieldBuilder() { + if (userIdDataRemovalStatusBuilder_ == null) { + if (!(statusCase_ == 4)) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + .getDefaultInstance(); + } + userIdDataRemovalStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveUserIdDataStatusOrBuilder>( + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) + status_, + getParentForChildren(), + isClean()); + status_ = null; + } + statusCase_ = 4; + onChanged(); + return userIdDataRemovalStatusBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePpidDataStatusOrBuilder> + ppidDataRemovalStatusBuilder_; + + /** + * + * + *
+       * The status of the ppid data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; + * + * + * @return Whether the ppidDataRemovalStatus field is set. + */ + @java.lang.Override + public boolean hasPpidDataRemovalStatus() { + return statusCase_ == 5; + } + + /** + * + * + *
+       * The status of the ppid data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; + * + * + * @return The ppidDataRemovalStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + getPpidDataRemovalStatus() { + if (ppidDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 5) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + .getDefaultInstance(); + } else { + if (statusCase_ == 5) { + return ppidDataRemovalStatusBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the ppid data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; + * + */ + public Builder setPpidDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus value) { + if (ppidDataRemovalStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + ppidDataRemovalStatusBuilder_.setMessage(value); + } + statusCase_ = 5; + return this; + } + + /** + * + * + *
+       * The status of the ppid data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; + * + */ + public Builder setPpidDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.Builder + builderForValue) { + if (ppidDataRemovalStatusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + ppidDataRemovalStatusBuilder_.setMessage(builderForValue.build()); + } + statusCase_ = 5; + return this; + } + + /** + * + * + *
+       * The status of the ppid data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; + * + */ + public Builder mergePpidDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus value) { + if (ppidDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 5 + && status_ + != com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + .getDefaultInstance()) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + .newBuilder( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePpidDataStatus) + status_) + .mergeFrom(value) + .buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + if (statusCase_ == 5) { + ppidDataRemovalStatusBuilder_.mergeFrom(value); + } else { + ppidDataRemovalStatusBuilder_.setMessage(value); + } + } + statusCase_ = 5; + return this; + } + + /** + * + * + *
+       * The status of the ppid data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; + * + */ + public Builder clearPpidDataRemovalStatus() { + if (ppidDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 5) { + statusCase_ = 0; + status_ = null; + onChanged(); + } + } else { + if (statusCase_ == 5) { + statusCase_ = 0; + status_ = null; + } + ppidDataRemovalStatusBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The status of the ppid data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.Builder + getPpidDataRemovalStatusBuilder() { + return internalGetPpidDataRemovalStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The status of the ppid data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatusOrBuilder + getPpidDataRemovalStatusOrBuilder() { + if ((statusCase_ == 5) && (ppidDataRemovalStatusBuilder_ != null)) { + return ppidDataRemovalStatusBuilder_.getMessageOrBuilder(); + } else { + if (statusCase_ == 5) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the ppid data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePpidDataStatusOrBuilder> + internalGetPpidDataRemovalStatusFieldBuilder() { + if (ppidDataRemovalStatusBuilder_ == null) { + if (!(statusCase_ == 5)) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + .getDefaultInstance(); + } + ppidDataRemovalStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePpidDataStatusOrBuilder>( + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) + status_, + getParentForChildren(), + isClean()); + status_ = null; + } + statusCase_ = 5; + onChanged(); + return ppidDataRemovalStatusBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatusOrBuilder> + compositeDataRemovalStatusBuilder_; + + /** + * + * + *
+       * The status of the composite data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; + * + * + * @return Whether the compositeDataRemovalStatus field is set. + */ + @java.lang.Override + public boolean hasCompositeDataRemovalStatus() { + return statusCase_ == 6; + } + + /** + * + * + *
+       * The status of the composite data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; + * + * + * @return The compositeDataRemovalStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + getCompositeDataRemovalStatus() { + if (compositeDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 6) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .getDefaultInstance(); + } else { + if (statusCase_ == 6) { + return compositeDataRemovalStatusBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the composite data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; + * + */ + public Builder setCompositeDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + value) { + if (compositeDataRemovalStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + compositeDataRemovalStatusBuilder_.setMessage(value); + } + statusCase_ = 6; + return this; + } + + /** + * + * + *
+       * The status of the composite data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; + * + */ + public Builder setCompositeDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .Builder + builderForValue) { + if (compositeDataRemovalStatusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + compositeDataRemovalStatusBuilder_.setMessage(builderForValue.build()); + } + statusCase_ = 6; + return this; + } + + /** + * + * + *
+       * The status of the composite data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; + * + */ + public Builder mergeCompositeDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + value) { + if (compositeDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 6 + && status_ + != com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus.getDefaultInstance()) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .newBuilder( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus) + status_) + .mergeFrom(value) + .buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + if (statusCase_ == 6) { + compositeDataRemovalStatusBuilder_.mergeFrom(value); + } else { + compositeDataRemovalStatusBuilder_.setMessage(value); + } + } + statusCase_ = 6; + return this; + } + + /** + * + * + *
+       * The status of the composite data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; + * + */ + public Builder clearCompositeDataRemovalStatus() { + if (compositeDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 6) { + statusCase_ = 0; + status_ = null; + onChanged(); + } + } else { + if (statusCase_ == 6) { + statusCase_ = 0; + status_ = null; + } + compositeDataRemovalStatusBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The status of the composite data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .Builder + getCompositeDataRemovalStatusBuilder() { + return internalGetCompositeDataRemovalStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The status of the composite data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatusOrBuilder + getCompositeDataRemovalStatusOrBuilder() { + if ((statusCase_ == 6) && (compositeDataRemovalStatusBuilder_ != null)) { + return compositeDataRemovalStatusBuilder_.getMessageOrBuilder(); + } else { + if (statusCase_ == 6) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the composite data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatusOrBuilder> + internalGetCompositeDataRemovalStatusFieldBuilder() { + if (compositeDataRemovalStatusBuilder_ == null) { + if (!(statusCase_ == 6)) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .getDefaultInstance(); + } + compositeDataRemovalStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatusOrBuilder>( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus) + status_, + getParentForChildren(), + isClean()); + status_ = null; + } + statusCase_ = 6; + onChanged(); + return compositeDataRemovalStatusBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatusOrBuilder> + googleUserIdDataRemovalStatusBuilder_; + + /** + * + * + *
+       * The status of the google user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + * + * @return Whether the googleUserIdDataRemovalStatus field is set. + */ + @java.lang.Override + public boolean hasGoogleUserIdDataRemovalStatus() { + return statusCase_ == 7; + } + + /** + * + * + *
+       * The status of the google user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + * + * @return The googleUserIdDataRemovalStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + getGoogleUserIdDataRemovalStatus() { + if (googleUserIdDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 7) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.getDefaultInstance(); + } else { + if (statusCase_ == 7) { + return googleUserIdDataRemovalStatusBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the google user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + */ + public Builder setGoogleUserIdDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + value) { + if (googleUserIdDataRemovalStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + googleUserIdDataRemovalStatusBuilder_.setMessage(value); + } + statusCase_ = 7; + return this; + } + + /** + * + * + *
+       * The status of the google user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + */ + public Builder setGoogleUserIdDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + .Builder + builderForValue) { + if (googleUserIdDataRemovalStatusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + googleUserIdDataRemovalStatusBuilder_.setMessage(builderForValue.build()); + } + statusCase_ = 7; + return this; + } + + /** + * + * + *
+       * The status of the google user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + */ + public Builder mergeGoogleUserIdDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + value) { + if (googleUserIdDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 7 + && status_ + != com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.getDefaultInstance()) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.newBuilder( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus) + status_) + .mergeFrom(value) + .buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + if (statusCase_ == 7) { + googleUserIdDataRemovalStatusBuilder_.mergeFrom(value); + } else { + googleUserIdDataRemovalStatusBuilder_.setMessage(value); + } + } + statusCase_ = 7; + return this; + } + + /** + * + * + *
+       * The status of the google user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + */ + public Builder clearGoogleUserIdDataRemovalStatus() { + if (googleUserIdDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 7) { + statusCase_ = 0; + status_ = null; + onChanged(); + } + } else { + if (statusCase_ == 7) { + statusCase_ = 0; + status_ = null; + } + googleUserIdDataRemovalStatusBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The status of the google user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + .Builder + getGoogleUserIdDataRemovalStatusBuilder() { + return internalGetGoogleUserIdDataRemovalStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The status of the google user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatusOrBuilder + getGoogleUserIdDataRemovalStatusOrBuilder() { + if ((statusCase_ == 7) && (googleUserIdDataRemovalStatusBuilder_ != null)) { + return googleUserIdDataRemovalStatusBuilder_.getMessageOrBuilder(); + } else { + if (statusCase_ == 7) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the google user id data removal from the destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatusOrBuilder> + internalGetGoogleUserIdDataRemovalStatusFieldBuilder() { + if (googleUserIdDataRemovalStatusBuilder_ == null) { + if (!(statusCase_ == 7)) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.getDefaultInstance(); + } + googleUserIdDataRemovalStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatusOrBuilder>( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus) + status_, + getParentForChildren(), + isClean()); + status_ = null; + } + statusCase_ = 7; + onChanged(); + return googleUserIdDataRemovalStatusBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatusOrBuilder> + partnerProvidedIdDataRemovalStatusBuilder_; + + /** + * + * + *
+       * The status of the partner provided id data removal from the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + * + * @return Whether the partnerProvidedIdDataRemovalStatus field is set. + */ + @java.lang.Override + public boolean hasPartnerProvidedIdDataRemovalStatus() { + return statusCase_ == 8; + } + + /** + * + * + *
+       * The status of the partner provided id data removal from the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + * + * @return The partnerProvidedIdDataRemovalStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + getPartnerProvidedIdDataRemovalStatus() { + if (partnerProvidedIdDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.getDefaultInstance(); + } else { + if (statusCase_ == 8) { + return partnerProvidedIdDataRemovalStatusBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the partner provided id data removal from the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + */ + public Builder setPartnerProvidedIdDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + value) { + if (partnerProvidedIdDataRemovalStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + partnerProvidedIdDataRemovalStatusBuilder_.setMessage(value); + } + statusCase_ = 8; + return this; + } + + /** + * + * + *
+       * The status of the partner provided id data removal from the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + */ + public Builder setPartnerProvidedIdDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.Builder + builderForValue) { + if (partnerProvidedIdDataRemovalStatusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + partnerProvidedIdDataRemovalStatusBuilder_.setMessage(builderForValue.build()); + } + statusCase_ = 8; + return this; + } + + /** + * + * + *
+       * The status of the partner provided id data removal from the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + */ + public Builder mergePartnerProvidedIdDataRemovalStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + value) { + if (partnerProvidedIdDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 8 + && status_ + != com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.getDefaultInstance()) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.newBuilder( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + status_) + .mergeFrom(value) + .buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + if (statusCase_ == 8) { + partnerProvidedIdDataRemovalStatusBuilder_.mergeFrom(value); + } else { + partnerProvidedIdDataRemovalStatusBuilder_.setMessage(value); + } + } + statusCase_ = 8; + return this; + } + + /** + * + * + *
+       * The status of the partner provided id data removal from the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + */ + public Builder clearPartnerProvidedIdDataRemovalStatus() { + if (partnerProvidedIdDataRemovalStatusBuilder_ == null) { + if (statusCase_ == 8) { + statusCase_ = 0; + status_ = null; + onChanged(); + } + } else { + if (statusCase_ == 8) { + statusCase_ = 0; + status_ = null; + } + partnerProvidedIdDataRemovalStatusBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The status of the partner provided id data removal from the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.Builder + getPartnerProvidedIdDataRemovalStatusBuilder() { + return internalGetPartnerProvidedIdDataRemovalStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The status of the partner provided id data removal from the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatusOrBuilder + getPartnerProvidedIdDataRemovalStatusOrBuilder() { + if ((statusCase_ == 8) && (partnerProvidedIdDataRemovalStatusBuilder_ != null)) { + return partnerProvidedIdDataRemovalStatusBuilder_.getMessageOrBuilder(); + } else { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+       * The status of the partner provided id data removal from the
+       * destination.
+       * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus partner_provided_id_data_removal_status = 8; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatusOrBuilder> + internalGetPartnerProvidedIdDataRemovalStatusFieldBuilder() { + if (partnerProvidedIdDataRemovalStatusBuilder_ == null) { + if (!(statusCase_ == 8)) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.getDefaultInstance(); + } + partnerProvidedIdDataRemovalStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatusOrBuilder>( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + status_, + getParentForChildren(), + isClean()); + status_ = null; + } + statusCase_ = 8; + onChanged(); + return partnerProvidedIdDataRemovalStatusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatus) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatus) + private static final com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAudienceMembersStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAudienceMembersStatus(); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAudienceMembersStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveAudienceMembersStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RemoveAllAudienceMembersStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
+   * The status of the remove all audience members request.
+   * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus} + */ + public static final class RemoveAllAudienceMembersStatus + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus) + RemoveAllAudienceMembersStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RemoveAllAudienceMembersStatus"); + } + + // Use RemoveAllAudienceMembersStatus.newBuilder() to construct. + private RemoveAllAudienceMembersStatus( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RemoveAllAudienceMembersStatus() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) + obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.Builder.class); + } + + // Construct using + // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + buildPartial() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) { + return mergeFrom( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + other) { + if (other + == com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus) + private static final com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus(); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveAllAudienceMembersStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IngestEventsStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The total count of events sent in the upload request. Includes all
+     * events in the request, regardless of whether they were successfully
+     * ingested or not.
+     * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + long getRecordCount(); + } + + /** + * + * + *
+   * The status of the events ingestion to the destination.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus} + */ + public static final class IngestEventsStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) + IngestEventsStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IngestEventsStatus"); + } + + // Use IngestEventsStatus.newBuilder() to construct. + private IngestEventsStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestEventsStatus() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.Builder + .class); + } + + public static final int RECORD_COUNT_FIELD_NUMBER = 1; + private long recordCount_ = 0L; + + /** + * + * + *
+     * The total count of events sent in the upload request. Includes all
+     * events in the request, regardless of whether they were successfully
+     * ingested or not.
+     * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + @java.lang.Override + public long getRecordCount() { + return recordCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (recordCount_ != 0L) { + output.writeInt64(1, recordCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (recordCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) obj; + + if (getRecordCount() != other.getRecordCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The status of the events ingestion to the destination.
+     * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.Builder + .class); + } + + // Construct using + // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + buildPartial() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordCount_ = recordCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) { + return mergeFrom( + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus other) { + if (other + == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + .getDefaultInstance()) return this; + if (other.getRecordCount() != 0L) { + setRecordCount(other.getRecordCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + recordCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long recordCount_; + + /** + * + * + *
+       * The total count of events sent in the upload request. Includes all
+       * events in the request, regardless of whether they were successfully
+       * ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + @java.lang.Override + public long getRecordCount() { + return recordCount_; + } + + /** + * + * + *
+       * The total count of events sent in the upload request. Includes all
+       * events in the request, regardless of whether they were successfully
+       * ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @param value The recordCount to set. + * @return This builder for chaining. + */ + public Builder setRecordCount(long value) { + + recordCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The total count of events sent in the upload request. Includes all
+       * events in the request, regardless of whether they were successfully
+       * ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearRecordCount() { + bitField0_ = (bitField0_ & ~0x00000001); + recordCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) + private static final com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestEventsStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus(); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestEventsStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IngestUserDataStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The total count of audience members sent in the upload request for the
+     * destination. Includes all audience members in the request, regardless of
+     * whether they were successfully ingested or not.
+     * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + long getRecordCount(); + + /** + * + * + *
+     * The total count of user identifiers sent in the upload request for the
+     * destination. Includes all user identifiers in the request, regardless of
+     * whether they were successfully ingested or not.
+     * 
+ * + * int64 user_identifier_count = 2; + * + * @return The userIdentifierCount. + */ + long getUserIdentifierCount(); + + /** + * + * + *
+     * The match rate range of the upload.
+     * 
+ * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @return The enum numeric value on the wire for uploadMatchRateRange. + */ + int getUploadMatchRateRangeValue(); + + /** + * + * + *
+     * The match rate range of the upload.
+     * 
+ * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @return The uploadMatchRateRange. + */ + com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange(); + } + + /** + * + * + *
+   * The status of the user data ingestion to the destination containing stats
+   * related to the ingestion.
+   * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus} + */ + public static final class IngestUserDataStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) + IngestUserDataStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "IngestUserDataStatus"); + } + + // Use IngestUserDataStatus.newBuilder() to construct. + private IngestUserDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestUserDataStatus() { + uploadMatchRateRange_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus.Builder + .class); + } + + public static final int RECORD_COUNT_FIELD_NUMBER = 1; + private long recordCount_ = 0L; + + /** + * + * + *
+     * The total count of audience members sent in the upload request for the
+     * destination. Includes all audience members in the request, regardless of
+     * whether they were successfully ingested or not.
+     * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + @java.lang.Override + public long getRecordCount() { + return recordCount_; + } + + public static final int USER_IDENTIFIER_COUNT_FIELD_NUMBER = 2; + private long userIdentifierCount_ = 0L; + + /** + * + * + *
+     * The total count of user identifiers sent in the upload request for the
+     * destination. Includes all user identifiers in the request, regardless of
+     * whether they were successfully ingested or not.
+     * 
+ * + * int64 user_identifier_count = 2; + * + * @return The userIdentifierCount. + */ + @java.lang.Override + public long getUserIdentifierCount() { + return userIdentifierCount_; + } + + public static final int UPLOAD_MATCH_RATE_RANGE_FIELD_NUMBER = 3; + private int uploadMatchRateRange_ = 0; + + /** + * + * + *
+     * The match rate range of the upload.
+     * 
+ * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @return The enum numeric value on the wire for uploadMatchRateRange. + */ + @java.lang.Override + public int getUploadMatchRateRangeValue() { + return uploadMatchRateRange_; + } + + /** + * + * + *
+     * The match rate range of the upload.
+     * 
+ * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @return The uploadMatchRateRange. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange() { + com.google.ads.datamanager.v1.MatchRateRange result = + com.google.ads.datamanager.v1.MatchRateRange.forNumber(uploadMatchRateRange_); + return result == null ? com.google.ads.datamanager.v1.MatchRateRange.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 (recordCount_ != 0L) { + output.writeInt64(1, recordCount_); + } + if (userIdentifierCount_ != 0L) { + output.writeInt64(2, userIdentifierCount_); + } + if (uploadMatchRateRange_ + != com.google.ads.datamanager.v1.MatchRateRange.MATCH_RATE_RANGE_UNKNOWN.getNumber()) { + output.writeEnum(3, uploadMatchRateRange_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (recordCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); + } + if (userIdentifierCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, userIdentifierCount_); + } + if (uploadMatchRateRange_ + != com.google.ads.datamanager.v1.MatchRateRange.MATCH_RATE_RANGE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, uploadMatchRateRange_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) obj; + + if (getRecordCount() != other.getRecordCount()) return false; + if (getUserIdentifierCount() != other.getUserIdentifierCount()) return false; + if (uploadMatchRateRange_ != other.uploadMatchRateRange_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); + hash = (37 * hash) + USER_IDENTIFIER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserIdentifierCount()); + hash = (37 * hash) + UPLOAD_MATCH_RATE_RANGE_FIELD_NUMBER; + hash = (53 * hash) + uploadMatchRateRange_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The status of the user data ingestion to the destination containing stats
+     * related to the ingestion.
+     * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_descriptor; } - /** - * - * - *
-       * The status of the user id data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; - * - */ - public Builder clearUserIdDataRemovalStatus() { - if (userIdDataRemovalStatusBuilder_ == null) { - if (statusCase_ == 4) { - statusCase_ = 0; - status_ = null; - onChanged(); - } - } else { - if (statusCase_ == 4) { - statusCase_ = 0; - status_ = null; - } - userIdDataRemovalStatusBuilder_.clear(); - } - return this; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + .Builder.class); } - /** - * - * - *
-       * The status of the user id data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; - * - */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus - .Builder - getUserIdDataRemovalStatusBuilder() { - return internalGetUserIdDataRemovalStatusFieldBuilder().getBuilder(); + // Construct using + // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - /** - * - * - *
-       * The status of the user id data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; - * - */ @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveUserIdDataStatusOrBuilder - getUserIdDataRemovalStatusOrBuilder() { - if ((statusCase_ == 4) && (userIdDataRemovalStatusBuilder_ != null)) { - return userIdDataRemovalStatusBuilder_.getMessageOrBuilder(); - } else { - if (statusCase_ == 4) { - return (com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveUserIdDataStatus) - status_; - } - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus - .getDefaultInstance(); - } + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordCount_ = 0L; + userIdentifierCount_ = 0L; + uploadMatchRateRange_ = 0; + return this; } - /** - * - * - *
-       * The status of the user id data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus user_id_data_removal_status = 4; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus - .Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveUserIdDataStatusOrBuilder> - internalGetUserIdDataRemovalStatusFieldBuilder() { - if (userIdDataRemovalStatusBuilder_ == null) { - if (!(statusCase_ == 4)) { - status_ = - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus - .getDefaultInstance(); - } - userIdDataRemovalStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus - .Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveUserIdDataStatusOrBuilder>( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) - status_, - getParentForChildren(), - isClean()); - status_ = null; - } - statusCase_ = 4; - onChanged(); - return userIdDataRemovalStatusBuilder_; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_descriptor; } - private com.google.protobuf.SingleFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemovePpidDataStatusOrBuilder> - ppidDataRemovalStatusBuilder_; - - /** - * - * - *
-       * The status of the ppid data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; - * - * - * @return Whether the ppidDataRemovalStatus field is set. - */ @java.lang.Override - public boolean hasPpidDataRemovalStatus() { - return statusCase_ == 5; + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + .getDefaultInstance(); } - /** - * - * - *
-       * The status of the ppid data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; - * - * - * @return The ppidDataRemovalStatus. - */ @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - getPpidDataRemovalStatus() { - if (ppidDataRemovalStatusBuilder_ == null) { - if (statusCase_ == 5) { - return (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) - status_; - } - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .getDefaultInstance(); - } else { - if (statusCase_ == 5) { - return ppidDataRemovalStatusBuilder_.getMessage(); - } - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .getDefaultInstance(); + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * - * - *
-       * The status of the ppid data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; - * - */ - public Builder setPpidDataRemovalStatus( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus value) { - if (ppidDataRemovalStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - ppidDataRemovalStatusBuilder_.setMessage(value); + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + buildPartial() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus( + this); + if (bitField0_ != 0) { + buildPartial0(result); } - statusCase_ = 5; - return this; + onBuilt(); + return result; } - /** - * - * - *
-       * The status of the ppid data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; - * - */ - public Builder setPpidDataRemovalStatus( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.Builder - builderForValue) { - if (ppidDataRemovalStatusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - ppidDataRemovalStatusBuilder_.setMessage(builderForValue.build()); + private void buildPartial0( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordCount_ = recordCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userIdentifierCount_ = userIdentifierCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uploadMatchRateRange_ = uploadMatchRateRange_; } - statusCase_ = 5; - return this; } - /** - * - * - *
-       * The status of the ppid data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; - * - */ - public Builder mergePpidDataRemovalStatus( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus value) { - if (ppidDataRemovalStatusBuilder_ == null) { - if (statusCase_ == 5 - && status_ - != com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .getDefaultInstance()) { - status_ = - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .newBuilder( - (com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemovePpidDataStatus) - status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) { + return mergeFrom( + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) + other); } else { - if (statusCase_ == 5) { - ppidDataRemovalStatusBuilder_.mergeFrom(value); - } else { - ppidDataRemovalStatusBuilder_.setMessage(value); - } + super.mergeFrom(other); + return this; } - statusCase_ = 5; + } + + public Builder mergeFrom( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus other) { + if (other + == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + .getDefaultInstance()) return this; + if (other.getRecordCount() != 0L) { + setRecordCount(other.getRecordCount()); + } + if (other.getUserIdentifierCount() != 0L) { + setUserIdentifierCount(other.getUserIdentifierCount()); + } + if (other.uploadMatchRateRange_ != 0) { + setUploadMatchRateRangeValue(other.getUploadMatchRateRangeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } - /** - * - * - *
-       * The status of the ppid data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; - * - */ - public Builder clearPpidDataRemovalStatus() { - if (ppidDataRemovalStatusBuilder_ == null) { - if (statusCase_ == 5) { - statusCase_ = 0; - status_ = null; - onChanged(); - } - } else { - if (statusCase_ == 5) { - statusCase_ = 0; - status_ = null; - } - ppidDataRemovalStatusBuilder_.clear(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + recordCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + userIdentifierCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + uploadMatchRateRange_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } + private int bitField0_; + + private long recordCount_; + /** * * *
-       * The status of the ppid data removal from the destination.
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; - * + * int64 record_count = 1; + * + * @return The recordCount. */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.Builder - getPpidDataRemovalStatusBuilder() { - return internalGetPpidDataRemovalStatusFieldBuilder().getBuilder(); + @java.lang.Override + public long getRecordCount() { + return recordCount_; } /** * * *
-       * The status of the ppid data removal from the destination.
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; - * + * int64 record_count = 1; + * + * @param value The recordCount to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatusOrBuilder - getPpidDataRemovalStatusOrBuilder() { - if ((statusCase_ == 5) && (ppidDataRemovalStatusBuilder_ != null)) { - return ppidDataRemovalStatusBuilder_.getMessageOrBuilder(); - } else { - if (statusCase_ == 5) { - return (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) - status_; - } - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .getDefaultInstance(); - } + public Builder setRecordCount(long value) { + + recordCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** * * *
-       * The status of the ppid data removal from the destination.
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus ppid_data_removal_status = 5; - * + * int64 record_count = 1; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemovePpidDataStatusOrBuilder> - internalGetPpidDataRemovalStatusFieldBuilder() { - if (ppidDataRemovalStatusBuilder_ == null) { - if (!(statusCase_ == 5)) { - status_ = - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .getDefaultInstance(); - } - ppidDataRemovalStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemovePpidDataStatusOrBuilder>( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) - status_, - getParentForChildren(), - isClean()); - status_ = null; - } - statusCase_ = 5; + public Builder clearRecordCount() { + bitField0_ = (bitField0_ & ~0x00000001); + recordCount_ = 0L; onChanged(); - return ppidDataRemovalStatusBuilder_; + return this; } - private com.google.protobuf.SingleFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatusOrBuilder> - compositeDataRemovalStatusBuilder_; + private long userIdentifierCount_; /** * * *
-       * The status of the composite data removal from the destination.
+       * The total count of user identifiers sent in the upload request for the
+       * destination. Includes all user identifiers in the request, regardless of
+       * whether they were successfully ingested or not.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; - * + * int64 user_identifier_count = 2; * - * @return Whether the compositeDataRemovalStatus field is set. + * @return The userIdentifierCount. */ @java.lang.Override - public boolean hasCompositeDataRemovalStatus() { - return statusCase_ == 6; + public long getUserIdentifierCount() { + return userIdentifierCount_; } /** * * *
-       * The status of the composite data removal from the destination.
+       * The total count of user identifiers sent in the upload request for the
+       * destination. Includes all user identifiers in the request, regardless of
+       * whether they were successfully ingested or not.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; - * + * int64 user_identifier_count = 2; * - * @return The compositeDataRemovalStatus. + * @param value The userIdentifierCount to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - getCompositeDataRemovalStatus() { - if (compositeDataRemovalStatusBuilder_ == null) { - if (statusCase_ == 6) { - return (com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus) - status_; - } - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .getDefaultInstance(); - } else { - if (statusCase_ == 6) { - return compositeDataRemovalStatusBuilder_.getMessage(); - } - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .getDefaultInstance(); - } - } + public Builder setUserIdentifierCount(long value) { - /** - * - * - *
-       * The status of the composite data removal from the destination.
-       * 
- * - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; - * - */ - public Builder setCompositeDataRemovalStatus( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - value) { - if (compositeDataRemovalStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - compositeDataRemovalStatusBuilder_.setMessage(value); - } - statusCase_ = 6; + userIdentifierCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); return this; } @@ -6368,94 +10034,56 @@ public Builder setCompositeDataRemovalStatus( * * *
-       * The status of the composite data removal from the destination.
+       * The total count of user identifiers sent in the upload request for the
+       * destination. Includes all user identifiers in the request, regardless of
+       * whether they were successfully ingested or not.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; - * + * int64 user_identifier_count = 2; + * + * @return This builder for chaining. */ - public Builder setCompositeDataRemovalStatus( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .Builder - builderForValue) { - if (compositeDataRemovalStatusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - compositeDataRemovalStatusBuilder_.setMessage(builderForValue.build()); - } - statusCase_ = 6; + public Builder clearUserIdentifierCount() { + bitField0_ = (bitField0_ & ~0x00000002); + userIdentifierCount_ = 0L; + onChanged(); return this; } + private int uploadMatchRateRange_ = 0; + /** * * *
-       * The status of the composite data removal from the destination.
+       * The match rate range of the upload.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; - * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @return The enum numeric value on the wire for uploadMatchRateRange. */ - public Builder mergeCompositeDataRemovalStatus( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - value) { - if (compositeDataRemovalStatusBuilder_ == null) { - if (statusCase_ == 6 - && status_ - != com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus.getDefaultInstance()) { - status_ = - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .newBuilder( - (com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus) - status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - if (statusCase_ == 6) { - compositeDataRemovalStatusBuilder_.mergeFrom(value); - } else { - compositeDataRemovalStatusBuilder_.setMessage(value); - } - } - statusCase_ = 6; - return this; + @java.lang.Override + public int getUploadMatchRateRangeValue() { + return uploadMatchRateRange_; } /** * * *
-       * The status of the composite data removal from the destination.
+       * The match rate range of the upload.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; - * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @param value The enum numeric value on the wire for uploadMatchRateRange to set. + * @return This builder for chaining. */ - public Builder clearCompositeDataRemovalStatus() { - if (compositeDataRemovalStatusBuilder_ == null) { - if (statusCase_ == 6) { - statusCase_ = 0; - status_ = null; - onChanged(); - } - } else { - if (statusCase_ == 6) { - statusCase_ = 0; - status_ = null; - } - compositeDataRemovalStatusBuilder_.clear(); - } + public Builder setUploadMatchRateRangeValue(int value) { + uploadMatchRateRange_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } @@ -6463,115 +10091,82 @@ public Builder clearCompositeDataRemovalStatus() { * * *
-       * The status of the composite data removal from the destination.
+       * The match rate range of the upload.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; - * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @return The uploadMatchRateRange. */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .Builder - getCompositeDataRemovalStatusBuilder() { - return internalGetCompositeDataRemovalStatusFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange() { + com.google.ads.datamanager.v1.MatchRateRange result = + com.google.ads.datamanager.v1.MatchRateRange.forNumber(uploadMatchRateRange_); + return result == null ? com.google.ads.datamanager.v1.MatchRateRange.UNRECOGNIZED : result; } /** * * *
-       * The status of the composite data removal from the destination.
+       * The match rate range of the upload.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; - * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @param value The uploadMatchRateRange to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatusOrBuilder - getCompositeDataRemovalStatusOrBuilder() { - if ((statusCase_ == 6) && (compositeDataRemovalStatusBuilder_ != null)) { - return compositeDataRemovalStatusBuilder_.getMessageOrBuilder(); - } else { - if (statusCase_ == 6) { - return (com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus) - status_; - } - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .getDefaultInstance(); + public Builder setUploadMatchRateRange(com.google.ads.datamanager.v1.MatchRateRange value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000004; + uploadMatchRateRange_ = value.getNumber(); + onChanged(); + return this; } /** * * *
-       * The status of the composite data removal from the destination.
+       * The match rate range of the upload.
        * 
* - * - * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus composite_data_removal_status = 6; - * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatusOrBuilder> - internalGetCompositeDataRemovalStatusFieldBuilder() { - if (compositeDataRemovalStatusBuilder_ == null) { - if (!(statusCase_ == 6)) { - status_ = - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .getDefaultInstance(); - } - compositeDataRemovalStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus, - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus.Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatusOrBuilder>( - (com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus) - status_, - getParentForChildren(), - isClean()); - status_ = null; - } - statusCase_ = 6; + public Builder clearUploadMatchRateRange() { + bitField0_ = (bitField0_ & ~0x00000004); + uploadMatchRateRange_ = 0; onChanged(); - return compositeDataRemovalStatusBuilder_; + return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveAudienceMembersStatus + .IngestUserDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveAudienceMembersStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveAudienceMembersStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public RemoveAudienceMembersStatus parsePartialFrom( + public IngestUserDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -6591,34 +10186,34 @@ public RemoveAudienceMembersStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface IngestEventsStatusOrBuilder + public interface RemoveUserDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) com.google.protobuf.MessageOrBuilder { /** * * *
-     * The total count of events sent in the upload request. Includes all
-     * events in the request, regardless of whether they were successfully
-     * ingested or not.
+     * The total count of audience members sent in the removal request. Includes
+     * all audience members in the request, regardless of whether they were
+     * successfully removed or not.
      * 
* * int64 record_count = 1; @@ -6626,21 +10221,37 @@ public interface IngestEventsStatusOrBuilder * @return The recordCount. */ long getRecordCount(); + + /** + * + * + *
+     * The total count of user identifiers sent in the removal request. Includes
+     * all user identifiers in the request, regardless of whether they were
+     * successfully removed or not.
+     * 
+ * + * int64 user_identifier_count = 2; + * + * @return The userIdentifierCount. + */ + long getUserIdentifierCount(); } /** * * *
-   * The status of the events ingestion to the destination.
+   * The status of the user data removal from the destination.
    * 
* - * Protobuf type {@code google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus} + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus} */ - public static final class IngestEventsStatus extends com.google.protobuf.GeneratedMessage + public static final class RemoveUserDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) - IngestEventsStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) + RemoveUserDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -6650,29 +10261,29 @@ public static final class IngestEventsStatus extends com.google.protobuf.Generat /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "IngestEventsStatus"); + "RemoveUserDataStatus"); } - // Use IngestEventsStatus.newBuilder() to construct. - private IngestEventsStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use RemoveUserDataStatus.newBuilder() to construct. + private RemoveUserDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private IngestEventsStatus() {} + private RemoveUserDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.Builder + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus.Builder .class); } @@ -6683,9 +10294,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The total count of events sent in the upload request. Includes all
-     * events in the request, regardless of whether they were successfully
-     * ingested or not.
+     * The total count of audience members sent in the removal request. Includes
+     * all audience members in the request, regardless of whether they were
+     * successfully removed or not.
      * 
* * int64 record_count = 1; @@ -6697,6 +10308,27 @@ public long getRecordCount() { return recordCount_; } + public static final int USER_IDENTIFIER_COUNT_FIELD_NUMBER = 2; + private long userIdentifierCount_ = 0L; + + /** + * + * + *
+     * The total count of user identifiers sent in the removal request. Includes
+     * all user identifiers in the request, regardless of whether they were
+     * successfully removed or not.
+     * 
+ * + * int64 user_identifier_count = 2; + * + * @return The userIdentifierCount. + */ + @java.lang.Override + public long getUserIdentifierCount() { + return userIdentifierCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6714,6 +10346,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } + if (userIdentifierCount_ != 0L) { + output.writeInt64(2, userIdentifierCount_); + } getUnknownFields().writeTo(output); } @@ -6726,6 +10361,9 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } + if (userIdentifierCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, userIdentifierCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6738,13 +10376,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; + if (getUserIdentifierCount() != other.getUserIdentifierCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6758,31 +10397,33 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); + hash = (37 * hash) + USER_IDENTIFIER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserIdentifierCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6790,23 +10431,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6814,12 +10455,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6827,12 +10468,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6851,7 +10492,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -6870,34 +10511,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The status of the events ingestion to the destination.
+     * The status of the user data removal from the destination.
      * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatusOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.Builder - .class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + .Builder.class); } // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus.newBuilder() + // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -6909,25 +10551,27 @@ public Builder clear() { super.clear(); bitField0_ = 0; recordCount_ = 0L; + userIdentifierCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_descriptor; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus .getDefaultInstance(); } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus result = + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -6936,10 +10580,11 @@ public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsSta } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus(this); + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus( + this); if (bitField0_ != 0) { buildPartial0(result); } @@ -6948,20 +10593,24 @@ public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsSta } private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus result) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recordCount_ = recordCount_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userIdentifierCount_ = userIdentifierCount_; + } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) { return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) other); + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) + other); } else { super.mergeFrom(other); return this; @@ -6969,13 +10618,16 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus other) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus other) { if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus .getDefaultInstance()) return this; if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } + if (other.getUserIdentifierCount() != 0L) { + setUserIdentifierCount(other.getUserIdentifierCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7008,6 +10660,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: + { + userIdentifierCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7033,9 +10691,9 @@ public Builder mergeFrom( * * *
-       * The total count of events sent in the upload request. Includes all
-       * events in the request, regardless of whether they were successfully
-       * ingested or not.
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* * int64 record_count = 1; @@ -7051,9 +10709,9 @@ public long getRecordCount() { * * *
-       * The total count of events sent in the upload request. Includes all
-       * events in the request, regardless of whether they were successfully
-       * ingested or not.
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* * int64 record_count = 1; @@ -7073,9 +10731,9 @@ public Builder setRecordCount(long value) { * * *
-       * The total count of events sent in the upload request. Includes all
-       * events in the request, regardless of whether they were successfully
-       * ingested or not.
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* * int64 record_count = 1; @@ -7089,28 +10747,90 @@ public Builder clearRecordCount() { return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) + private long userIdentifierCount_; + + /** + * + * + *
+       * The total count of user identifiers sent in the removal request. Includes
+       * all user identifiers in the request, regardless of whether they were
+       * successfully removed or not.
+       * 
+ * + * int64 user_identifier_count = 2; + * + * @return The userIdentifierCount. + */ + @java.lang.Override + public long getUserIdentifierCount() { + return userIdentifierCount_; + } + + /** + * + * + *
+       * The total count of user identifiers sent in the removal request. Includes
+       * all user identifiers in the request, regardless of whether they were
+       * successfully removed or not.
+       * 
+ * + * int64 user_identifier_count = 2; + * + * @param value The userIdentifierCount to set. + * @return This builder for chaining. + */ + public Builder setUserIdentifierCount(long value) { + + userIdentifierCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The total count of user identifiers sent in the removal request. Includes
+       * all user identifiers in the request, regardless of whether they were
+       * successfully removed or not.
+       * 
+ * + * int64 user_identifier_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearUserIdentifierCount() { + bitField0_ = (bitField0_ & ~0x00000002); + userIdentifierCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestEventsStatus + .RemoveUserDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public IngestEventsStatus parsePartialFrom( + public RemoveUserDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7130,25 +10850,25 @@ public IngestEventsStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestEventsStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface IngestUserDataStatusOrBuilder + public interface IngestMobileDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -7170,59 +10890,33 @@ public interface IngestUserDataStatusOrBuilder * * *
-     * The total count of user identifiers sent in the upload request for the
-     * destination. Includes all user identifiers in the request, regardless of
+     * The total count of mobile ids sent in the upload request for the
+     * destination. Includes all mobile ids in the request, regardless of
      * whether they were successfully ingested or not.
      * 
* - * int64 user_identifier_count = 2; - * - * @return The userIdentifierCount. - */ - long getUserIdentifierCount(); - - /** - * - * - *
-     * The match rate range of the upload.
-     * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; - * - * @return The enum numeric value on the wire for uploadMatchRateRange. - */ - int getUploadMatchRateRangeValue(); - - /** - * - * - *
-     * The match rate range of the upload.
-     * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * int64 mobile_id_count = 2; * - * @return The uploadMatchRateRange. + * @return The mobileIdCount. */ - com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange(); + long getMobileIdCount(); } /** * * *
-   * The status of the user data ingestion to the destination containing stats
+   * The status of the mobile data ingestion to the destination containing stats
    * related to the ingestion.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus} */ - public static final class IngestUserDataStatus extends com.google.protobuf.GeneratedMessage + public static final class IngestMobileDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) - IngestUserDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) + IngestMobileDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -7232,32 +10926,31 @@ public static final class IngestUserDataStatus extends com.google.protobuf.Gener /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "IngestUserDataStatus"); + "IngestMobileDataStatus"); } - // Use IngestUserDataStatus.newBuilder() to construct. - private IngestUserDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use IngestMobileDataStatus.newBuilder() to construct. + private IngestMobileDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private IngestUserDataStatus() { - uploadMatchRateRange_ = 0; - } + private IngestMobileDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus.class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus.Builder - .class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + .Builder.class); } public static final int RECORD_COUNT_FIELD_NUMBER = 1; @@ -7281,62 +10974,25 @@ public long getRecordCount() { return recordCount_; } - public static final int USER_IDENTIFIER_COUNT_FIELD_NUMBER = 2; - private long userIdentifierCount_ = 0L; + public static final int MOBILE_ID_COUNT_FIELD_NUMBER = 2; + private long mobileIdCount_ = 0L; /** * * *
-     * The total count of user identifiers sent in the upload request for the
-     * destination. Includes all user identifiers in the request, regardless of
+     * The total count of mobile ids sent in the upload request for the
+     * destination. Includes all mobile ids in the request, regardless of
      * whether they were successfully ingested or not.
      * 
* - * int64 user_identifier_count = 2; - * - * @return The userIdentifierCount. - */ - @java.lang.Override - public long getUserIdentifierCount() { - return userIdentifierCount_; - } - - public static final int UPLOAD_MATCH_RATE_RANGE_FIELD_NUMBER = 3; - private int uploadMatchRateRange_ = 0; - - /** - * - * - *
-     * The match rate range of the upload.
-     * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; - * - * @return The enum numeric value on the wire for uploadMatchRateRange. - */ - @java.lang.Override - public int getUploadMatchRateRangeValue() { - return uploadMatchRateRange_; - } - - /** - * - * - *
-     * The match rate range of the upload.
-     * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * int64 mobile_id_count = 2; * - * @return The uploadMatchRateRange. + * @return The mobileIdCount. */ @java.lang.Override - public com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange() { - com.google.ads.datamanager.v1.MatchRateRange result = - com.google.ads.datamanager.v1.MatchRateRange.forNumber(uploadMatchRateRange_); - return result == null ? com.google.ads.datamanager.v1.MatchRateRange.UNRECOGNIZED : result; + public long getMobileIdCount() { + return mobileIdCount_; } private byte memoizedIsInitialized = -1; @@ -7356,12 +11012,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (userIdentifierCount_ != 0L) { - output.writeInt64(2, userIdentifierCount_); - } - if (uploadMatchRateRange_ - != com.google.ads.datamanager.v1.MatchRateRange.MATCH_RATE_RANGE_UNKNOWN.getNumber()) { - output.writeEnum(3, uploadMatchRateRange_); + if (mobileIdCount_ != 0L) { + output.writeInt64(2, mobileIdCount_); } getUnknownFields().writeTo(output); } @@ -7375,12 +11027,8 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - if (userIdentifierCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, userIdentifierCount_); - } - if (uploadMatchRateRange_ - != com.google.ads.datamanager.v1.MatchRateRange.MATCH_RATE_RANGE_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, uploadMatchRateRange_); + if (mobileIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, mobileIdCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7394,15 +11042,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; - if (getUserIdentifierCount() != other.getUserIdentifierCount()) return false; - if (uploadMatchRateRange_ != other.uploadMatchRateRange_) return false; + if (getMobileIdCount() != other.getMobileIdCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7416,35 +11063,33 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + USER_IDENTIFIER_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserIdentifierCount()); - hash = (37 * hash) + UPLOAD_MATCH_RATE_RANGE_FIELD_NUMBER; - hash = (53 * hash) + uploadMatchRateRange_; + hash = (37 * hash) + MOBILE_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMobileIdCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7452,23 +11097,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7476,12 +11121,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -7489,12 +11134,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7513,7 +11158,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -7532,36 +11178,36 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The status of the user data ingestion to the destination containing stats
+     * The status of the mobile data ingestion to the destination containing stats
      * related to the ingestion.
      * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatusOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus .Builder.class); } // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus.newBuilder() + // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -7573,28 +11219,27 @@ public Builder clear() { super.clear(); bitField0_ = 0; recordCount_ = 0L; - userIdentifierCount_ = 0L; - uploadMatchRateRange_ = 0; + mobileIdCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_descriptor; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus .getDefaultInstance(); } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus result = + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -7603,10 +11248,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus( this); if (bitField0_ != 0) { buildPartial0(result); @@ -7616,16 +11261,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus result) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recordCount_ = recordCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.userIdentifierCount_ = userIdentifierCount_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.uploadMatchRateRange_ = uploadMatchRateRange_; + result.mobileIdCount_ = mobileIdCount_; } } @@ -7633,9 +11275,9 @@ private void buildPartial0( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) { return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) other); } else { super.mergeFrom(other); @@ -7644,18 +11286,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus other) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus other) { if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus .getDefaultInstance()) return this; if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } - if (other.getUserIdentifierCount() != 0L) { - setUserIdentifierCount(other.getUserIdentifierCount()); - } - if (other.uploadMatchRateRange_ != 0) { - setUploadMatchRateRangeValue(other.getUploadMatchRateRangeValue()); + if (other.getMobileIdCount() != 0L) { + setMobileIdCount(other.getMobileIdCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -7691,16 +11330,10 @@ public Builder mergeFrom( } // case 8 case 16: { - userIdentifierCount_ = input.readInt64(); + mobileIdCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 - case 24: - { - uploadMatchRateRange_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7782,43 +11415,43 @@ public Builder clearRecordCount() { return this; } - private long userIdentifierCount_; + private long mobileIdCount_; /** * * *
-       * The total count of user identifiers sent in the upload request for the
-       * destination. Includes all user identifiers in the request, regardless of
+       * The total count of mobile ids sent in the upload request for the
+       * destination. Includes all mobile ids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 user_identifier_count = 2; + * int64 mobile_id_count = 2; * - * @return The userIdentifierCount. + * @return The mobileIdCount. */ @java.lang.Override - public long getUserIdentifierCount() { - return userIdentifierCount_; + public long getMobileIdCount() { + return mobileIdCount_; } /** * * *
-       * The total count of user identifiers sent in the upload request for the
-       * destination. Includes all user identifiers in the request, regardless of
+       * The total count of mobile ids sent in the upload request for the
+       * destination. Includes all mobile ids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 user_identifier_count = 2; + * int64 mobile_id_count = 2; * - * @param value The userIdentifierCount to set. + * @param value The mobileIdCount to set. * @return This builder for chaining. */ - public Builder setUserIdentifierCount(long value) { + public Builder setMobileIdCount(long value) { - userIdentifierCount_ = value; + mobileIdCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -7828,139 +11461,44 @@ public Builder setUserIdentifierCount(long value) { * * *
-       * The total count of user identifiers sent in the upload request for the
-       * destination. Includes all user identifiers in the request, regardless of
+       * The total count of mobile ids sent in the upload request for the
+       * destination. Includes all mobile ids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 user_identifier_count = 2; + * int64 mobile_id_count = 2; * * @return This builder for chaining. */ - public Builder clearUserIdentifierCount() { + public Builder clearMobileIdCount() { bitField0_ = (bitField0_ & ~0x00000002); - userIdentifierCount_ = 0L; - onChanged(); - return this; - } - - private int uploadMatchRateRange_ = 0; - - /** - * - * - *
-       * The match rate range of the upload.
-       * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; - * - * @return The enum numeric value on the wire for uploadMatchRateRange. - */ - @java.lang.Override - public int getUploadMatchRateRangeValue() { - return uploadMatchRateRange_; - } - - /** - * - * - *
-       * The match rate range of the upload.
-       * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; - * - * @param value The enum numeric value on the wire for uploadMatchRateRange to set. - * @return This builder for chaining. - */ - public Builder setUploadMatchRateRangeValue(int value) { - uploadMatchRateRange_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-       * The match rate range of the upload.
-       * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; - * - * @return The uploadMatchRateRange. - */ - @java.lang.Override - public com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange() { - com.google.ads.datamanager.v1.MatchRateRange result = - com.google.ads.datamanager.v1.MatchRateRange.forNumber(uploadMatchRateRange_); - return result == null ? com.google.ads.datamanager.v1.MatchRateRange.UNRECOGNIZED : result; - } - - /** - * - * - *
-       * The match rate range of the upload.
-       * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; - * - * @param value The uploadMatchRateRange to set. - * @return This builder for chaining. - */ - public Builder setUploadMatchRateRange(com.google.ads.datamanager.v1.MatchRateRange value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - uploadMatchRateRange_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-       * The match rate range of the upload.
-       * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; - * - * @return This builder for chaining. - */ - public Builder clearUploadMatchRateRange() { - bitField0_ = (bitField0_ & ~0x00000004); - uploadMatchRateRange_ = 0; + mobileIdCount_ = 0L; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestUserDataStatus + .IngestMobileDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public IngestUserDataStatus parsePartialFrom( + public IngestMobileDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7980,25 +11518,25 @@ public IngestUserDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RemoveUserDataStatusOrBuilder + public interface RemoveMobileDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -8020,32 +11558,32 @@ public interface RemoveUserDataStatusOrBuilder * * *
-     * The total count of user identifiers sent in the removal request. Includes
-     * all user identifiers in the request, regardless of whether they were
-     * successfully removed or not.
+     * The total count of mobile Ids sent in the removal request. Includes all
+     * mobile ids in the request, regardless of whether they were successfully
+     * removed or not.
      * 
* - * int64 user_identifier_count = 2; + * int64 mobile_id_count = 2; * - * @return The userIdentifierCount. + * @return The mobileIdCount. */ - long getUserIdentifierCount(); + long getMobileIdCount(); } /** * * *
-   * The status of the user data removal from the destination.
+   * The status of the mobile data removal from the destination.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus} */ - public static final class RemoveUserDataStatus extends com.google.protobuf.GeneratedMessage + public static final class RemoveMobileDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) - RemoveUserDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) + RemoveMobileDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -8055,30 +11593,31 @@ public static final class RemoveUserDataStatus extends com.google.protobuf.Gener /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "RemoveUserDataStatus"); + "RemoveMobileDataStatus"); } - // Use RemoveUserDataStatus.newBuilder() to construct. - private RemoveUserDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use RemoveMobileDataStatus.newBuilder() to construct. + private RemoveMobileDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private RemoveUserDataStatus() {} + private RemoveMobileDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus.class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus.Builder - .class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + .Builder.class); } public static final int RECORD_COUNT_FIELD_NUMBER = 1; @@ -8102,25 +11641,25 @@ public long getRecordCount() { return recordCount_; } - public static final int USER_IDENTIFIER_COUNT_FIELD_NUMBER = 2; - private long userIdentifierCount_ = 0L; + public static final int MOBILE_ID_COUNT_FIELD_NUMBER = 2; + private long mobileIdCount_ = 0L; /** * * *
-     * The total count of user identifiers sent in the removal request. Includes
-     * all user identifiers in the request, regardless of whether they were
-     * successfully removed or not.
+     * The total count of mobile Ids sent in the removal request. Includes all
+     * mobile ids in the request, regardless of whether they were successfully
+     * removed or not.
      * 
* - * int64 user_identifier_count = 2; + * int64 mobile_id_count = 2; * - * @return The userIdentifierCount. + * @return The mobileIdCount. */ @java.lang.Override - public long getUserIdentifierCount() { - return userIdentifierCount_; + public long getMobileIdCount() { + return mobileIdCount_; } private byte memoizedIsInitialized = -1; @@ -8140,8 +11679,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (userIdentifierCount_ != 0L) { - output.writeInt64(2, userIdentifierCount_); + if (mobileIdCount_ != 0L) { + output.writeInt64(2, mobileIdCount_); } getUnknownFields().writeTo(output); } @@ -8155,8 +11694,8 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - if (userIdentifierCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, userIdentifierCount_); + if (mobileIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, mobileIdCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8170,14 +11709,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; - if (getUserIdentifierCount() != other.getUserIdentifierCount()) return false; + if (getMobileIdCount() != other.getMobileIdCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8191,33 +11730,33 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + USER_IDENTIFIER_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserIdentifierCount()); + hash = (37 * hash) + MOBILE_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMobileIdCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8225,23 +11764,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8249,12 +11788,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8262,12 +11801,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8286,7 +11825,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -8305,35 +11845,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The status of the user data removal from the destination.
+     * The status of the mobile data removal from the destination.
      * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatusOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus .Builder.class); } // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus.newBuilder() + // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -8345,27 +11885,27 @@ public Builder clear() { super.clear(); bitField0_ = 0; recordCount_ = 0L; - userIdentifierCount_ = 0L; + mobileIdCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_descriptor; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus .getDefaultInstance(); } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus result = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -8374,10 +11914,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus( this); if (bitField0_ != 0) { buildPartial0(result); @@ -8387,13 +11927,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus result) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recordCount_ = recordCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.userIdentifierCount_ = userIdentifierCount_; + result.mobileIdCount_ = mobileIdCount_; } } @@ -8401,9 +11941,9 @@ private void buildPartial0( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) { return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) other); } else { super.mergeFrom(other); @@ -8412,15 +11952,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus other) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus other) { if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus .getDefaultInstance()) return this; if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } - if (other.getUserIdentifierCount() != 0L) { - setUserIdentifierCount(other.getUserIdentifierCount()); + if (other.getMobileIdCount() != 0L) { + setMobileIdCount(other.getMobileIdCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -8456,7 +11996,7 @@ public Builder mergeFrom( } // case 8 case 16: { - userIdentifierCount_ = input.readInt64(); + mobileIdCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 @@ -8541,43 +12081,43 @@ public Builder clearRecordCount() { return this; } - private long userIdentifierCount_; + private long mobileIdCount_; /** * * *
-       * The total count of user identifiers sent in the removal request. Includes
-       * all user identifiers in the request, regardless of whether they were
-       * successfully removed or not.
+       * The total count of mobile Ids sent in the removal request. Includes all
+       * mobile ids in the request, regardless of whether they were successfully
+       * removed or not.
        * 
* - * int64 user_identifier_count = 2; + * int64 mobile_id_count = 2; * - * @return The userIdentifierCount. + * @return The mobileIdCount. */ @java.lang.Override - public long getUserIdentifierCount() { - return userIdentifierCount_; + public long getMobileIdCount() { + return mobileIdCount_; } /** * * *
-       * The total count of user identifiers sent in the removal request. Includes
-       * all user identifiers in the request, regardless of whether they were
-       * successfully removed or not.
+       * The total count of mobile Ids sent in the removal request. Includes all
+       * mobile ids in the request, regardless of whether they were successfully
+       * removed or not.
        * 
* - * int64 user_identifier_count = 2; + * int64 mobile_id_count = 2; * - * @param value The userIdentifierCount to set. + * @param value The mobileIdCount to set. * @return This builder for chaining. */ - public Builder setUserIdentifierCount(long value) { + public Builder setMobileIdCount(long value) { - userIdentifierCount_ = value; + mobileIdCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -8587,44 +12127,44 @@ public Builder setUserIdentifierCount(long value) { * * *
-       * The total count of user identifiers sent in the removal request. Includes
-       * all user identifiers in the request, regardless of whether they were
-       * successfully removed or not.
+       * The total count of mobile Ids sent in the removal request. Includes all
+       * mobile ids in the request, regardless of whether they were successfully
+       * removed or not.
        * 
* - * int64 user_identifier_count = 2; + * int64 mobile_id_count = 2; * * @return This builder for chaining. */ - public Builder clearUserIdentifierCount() { + public Builder clearMobileIdCount() { bitField0_ = (bitField0_ & ~0x00000002); - userIdentifierCount_ = 0L; + mobileIdCount_ = 0L; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveUserDataStatus + .RemoveMobileDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public RemoveUserDataStatus parsePartialFrom( + public RemoveMobileDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8644,25 +12184,25 @@ public RemoveUserDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface IngestMobileDataStatusOrBuilder + public interface IngestPairDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -8684,33 +12224,33 @@ public interface IngestMobileDataStatusOrBuilder * * *
-     * The total count of mobile ids sent in the upload request for the
-     * destination. Includes all mobile ids in the request, regardless of
+     * The total count of pair ids sent in the upload request for the
+     * destination. Includes all pair ids in the request, regardless of
      * whether they were successfully ingested or not.
      * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * - * @return The mobileIdCount. + * @return The pairIdCount. */ - long getMobileIdCount(); + long getPairIdCount(); } /** * * *
-   * The status of the mobile data ingestion to the destination containing stats
+   * The status of the pair data ingestion to the destination containing stats
    * related to the ingestion.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus} */ - public static final class IngestMobileDataStatus extends com.google.protobuf.GeneratedMessage + public static final class IngestPairDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) - IngestMobileDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) + IngestPairDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -8720,31 +12260,30 @@ public static final class IngestMobileDataStatus extends com.google.protobuf.Gen /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "IngestMobileDataStatus"); + "IngestPairDataStatus"); } - // Use IngestMobileDataStatus.newBuilder() to construct. - private IngestMobileDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use IngestPairDataStatus.newBuilder() to construct. + private IngestPairDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private IngestMobileDataStatus() {} + private IngestPairDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus - .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus - .Builder.class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus.Builder + .class); } public static final int RECORD_COUNT_FIELD_NUMBER = 1; @@ -8768,25 +12307,25 @@ public long getRecordCount() { return recordCount_; } - public static final int MOBILE_ID_COUNT_FIELD_NUMBER = 2; - private long mobileIdCount_ = 0L; + public static final int PAIR_ID_COUNT_FIELD_NUMBER = 2; + private long pairIdCount_ = 0L; /** * * *
-     * The total count of mobile ids sent in the upload request for the
-     * destination. Includes all mobile ids in the request, regardless of
+     * The total count of pair ids sent in the upload request for the
+     * destination. Includes all pair ids in the request, regardless of
      * whether they were successfully ingested or not.
      * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * - * @return The mobileIdCount. + * @return The pairIdCount. */ @java.lang.Override - public long getMobileIdCount() { - return mobileIdCount_; + public long getPairIdCount() { + return pairIdCount_; } private byte memoizedIsInitialized = -1; @@ -8806,8 +12345,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (mobileIdCount_ != 0L) { - output.writeInt64(2, mobileIdCount_); + if (pairIdCount_ != 0L) { + output.writeInt64(2, pairIdCount_); } getUnknownFields().writeTo(output); } @@ -8821,8 +12360,8 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - if (mobileIdCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, mobileIdCount_); + if (pairIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, pairIdCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8836,14 +12375,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; - if (getMobileIdCount() != other.getMobileIdCount()) return false; + if (getPairIdCount() != other.getPairIdCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8857,33 +12396,33 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + MOBILE_ID_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMobileIdCount()); + hash = (37 * hash) + PAIR_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPairIdCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8891,23 +12430,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8915,12 +12454,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -8928,12 +12467,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8952,8 +12491,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus - prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -8972,36 +12510,36 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The status of the mobile data ingestion to the destination containing stats
+     * The status of the pair data ingestion to the destination containing stats
      * related to the ingestion.
      * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatusOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus .Builder.class); } // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus.newBuilder() + // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -9013,27 +12551,27 @@ public Builder clear() { super.clear(); bitField0_ = 0; recordCount_ = 0L; - mobileIdCount_ = 0L; + pairIdCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_descriptor; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus .getDefaultInstance(); } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus result = + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -9042,10 +12580,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus( this); if (bitField0_ != 0) { buildPartial0(result); @@ -9055,13 +12593,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus result) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recordCount_ = recordCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.mobileIdCount_ = mobileIdCount_; + result.pairIdCount_ = pairIdCount_; } } @@ -9069,9 +12607,9 @@ private void buildPartial0( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) { return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) other); } else { super.mergeFrom(other); @@ -9080,15 +12618,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus other) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus other) { if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus .getDefaultInstance()) return this; if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } - if (other.getMobileIdCount() != 0L) { - setMobileIdCount(other.getMobileIdCount()); + if (other.getPairIdCount() != 0L) { + setPairIdCount(other.getPairIdCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -9124,7 +12662,7 @@ public Builder mergeFrom( } // case 8 case 16: { - mobileIdCount_ = input.readInt64(); + pairIdCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 @@ -9209,43 +12747,43 @@ public Builder clearRecordCount() { return this; } - private long mobileIdCount_; + private long pairIdCount_; /** * * *
-       * The total count of mobile ids sent in the upload request for the
-       * destination. Includes all mobile ids in the request, regardless of
+       * The total count of pair ids sent in the upload request for the
+       * destination. Includes all pair ids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * - * @return The mobileIdCount. + * @return The pairIdCount. */ @java.lang.Override - public long getMobileIdCount() { - return mobileIdCount_; + public long getPairIdCount() { + return pairIdCount_; } /** * * *
-       * The total count of mobile ids sent in the upload request for the
-       * destination. Includes all mobile ids in the request, regardless of
+       * The total count of pair ids sent in the upload request for the
+       * destination. Includes all pair ids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * - * @param value The mobileIdCount to set. + * @param value The pairIdCount to set. * @return This builder for chaining. */ - public Builder setMobileIdCount(long value) { + public Builder setPairIdCount(long value) { - mobileIdCount_ = value; + pairIdCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -9255,44 +12793,44 @@ public Builder setMobileIdCount(long value) { * * *
-       * The total count of mobile ids sent in the upload request for the
-       * destination. Includes all mobile ids in the request, regardless of
+       * The total count of pair ids sent in the upload request for the
+       * destination. Includes all pair ids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * * @return This builder for chaining. */ - public Builder clearMobileIdCount() { + public Builder clearPairIdCount() { bitField0_ = (bitField0_ & ~0x00000002); - mobileIdCount_ = 0L; + pairIdCount_ = 0L; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestMobileDataStatus + .IngestPairDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public IngestMobileDataStatus parsePartialFrom( + public IngestPairDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9312,25 +12850,25 @@ public IngestMobileDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RemoveMobileDataStatusOrBuilder + public interface RemovePairDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -9352,32 +12890,32 @@ public interface RemoveMobileDataStatusOrBuilder * * *
-     * The total count of mobile Ids sent in the removal request. Includes all
-     * mobile ids in the request, regardless of whether they were successfully
+     * The total count of pair ids sent in the removal request. Includes all
+     * pair ids in the request, regardless of whether they were successfully
      * removed or not.
      * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * - * @return The mobileIdCount. + * @return The pairIdCount. */ - long getMobileIdCount(); + long getPairIdCount(); } /** * * *
-   * The status of the mobile data removal from the destination.
+   * The status of the pair data removal from the destination.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus} */ - public static final class RemoveMobileDataStatus extends com.google.protobuf.GeneratedMessage + public static final class RemovePairDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) - RemoveMobileDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) + RemovePairDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -9387,31 +12925,30 @@ public static final class RemoveMobileDataStatus extends com.google.protobuf.Gen /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "RemoveMobileDataStatus"); + "RemovePairDataStatus"); } - // Use RemoveMobileDataStatus.newBuilder() to construct. - private RemoveMobileDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use RemovePairDataStatus.newBuilder() to construct. + private RemovePairDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private RemoveMobileDataStatus() {} + private RemovePairDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus - .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus - .Builder.class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus.Builder + .class); } public static final int RECORD_COUNT_FIELD_NUMBER = 1; @@ -9435,25 +12972,25 @@ public long getRecordCount() { return recordCount_; } - public static final int MOBILE_ID_COUNT_FIELD_NUMBER = 2; - private long mobileIdCount_ = 0L; + public static final int PAIR_ID_COUNT_FIELD_NUMBER = 2; + private long pairIdCount_ = 0L; /** * * *
-     * The total count of mobile Ids sent in the removal request. Includes all
-     * mobile ids in the request, regardless of whether they were successfully
+     * The total count of pair ids sent in the removal request. Includes all
+     * pair ids in the request, regardless of whether they were successfully
      * removed or not.
      * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * - * @return The mobileIdCount. + * @return The pairIdCount. */ @java.lang.Override - public long getMobileIdCount() { - return mobileIdCount_; + public long getPairIdCount() { + return pairIdCount_; } private byte memoizedIsInitialized = -1; @@ -9473,8 +13010,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (mobileIdCount_ != 0L) { - output.writeInt64(2, mobileIdCount_); + if (pairIdCount_ != 0L) { + output.writeInt64(2, pairIdCount_); } getUnknownFields().writeTo(output); } @@ -9488,8 +13025,8 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - if (mobileIdCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, mobileIdCount_); + if (pairIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, pairIdCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9503,14 +13040,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; - if (getMobileIdCount() != other.getMobileIdCount()) return false; + if (getPairIdCount() != other.getPairIdCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9524,33 +13061,33 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + MOBILE_ID_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMobileIdCount()); + hash = (37 * hash) + PAIR_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPairIdCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -9558,23 +13095,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9582,12 +13119,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -9595,12 +13132,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -9619,8 +13156,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus - prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -9639,35 +13175,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The status of the mobile data removal from the destination.
+     * The status of the pair data removal from the destination.
      * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatusOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus .Builder.class); } // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus.newBuilder() + // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -9679,27 +13215,27 @@ public Builder clear() { super.clear(); bitField0_ = 0; recordCount_ = 0L; - mobileIdCount_ = 0L; + pairIdCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_descriptor; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus .getDefaultInstance(); } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus result = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -9708,10 +13244,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus( this); if (bitField0_ != 0) { buildPartial0(result); @@ -9721,13 +13257,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus result) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recordCount_ = recordCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.mobileIdCount_ = mobileIdCount_; + result.pairIdCount_ = pairIdCount_; } } @@ -9735,9 +13271,9 @@ private void buildPartial0( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) { return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) other); } else { super.mergeFrom(other); @@ -9746,15 +13282,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus other) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus other) { if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus .getDefaultInstance()) return this; if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } - if (other.getMobileIdCount() != 0L) { - setMobileIdCount(other.getMobileIdCount()); + if (other.getPairIdCount() != 0L) { + setPairIdCount(other.getPairIdCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -9790,7 +13326,7 @@ public Builder mergeFrom( } // case 8 case 16: { - mobileIdCount_ = input.readInt64(); + pairIdCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 @@ -9875,43 +13411,43 @@ public Builder clearRecordCount() { return this; } - private long mobileIdCount_; + private long pairIdCount_; /** * * *
-       * The total count of mobile Ids sent in the removal request. Includes all
-       * mobile ids in the request, regardless of whether they were successfully
+       * The total count of pair ids sent in the removal request. Includes all
+       * pair ids in the request, regardless of whether they were successfully
        * removed or not.
        * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * - * @return The mobileIdCount. + * @return The pairIdCount. */ @java.lang.Override - public long getMobileIdCount() { - return mobileIdCount_; + public long getPairIdCount() { + return pairIdCount_; } /** * * *
-       * The total count of mobile Ids sent in the removal request. Includes all
-       * mobile ids in the request, regardless of whether they were successfully
+       * The total count of pair ids sent in the removal request. Includes all
+       * pair ids in the request, regardless of whether they were successfully
        * removed or not.
        * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * - * @param value The mobileIdCount to set. + * @param value The pairIdCount to set. * @return This builder for chaining. */ - public Builder setMobileIdCount(long value) { + public Builder setPairIdCount(long value) { - mobileIdCount_ = value; + pairIdCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -9921,44 +13457,44 @@ public Builder setMobileIdCount(long value) { * * *
-       * The total count of mobile Ids sent in the removal request. Includes all
-       * mobile ids in the request, regardless of whether they were successfully
+       * The total count of pair ids sent in the removal request. Includes all
+       * pair ids in the request, regardless of whether they were successfully
        * removed or not.
        * 
* - * int64 mobile_id_count = 2; + * int64 pair_id_count = 2; * * @return This builder for chaining. */ - public Builder clearMobileIdCount() { + public Builder clearPairIdCount() { bitField0_ = (bitField0_ & ~0x00000002); - mobileIdCount_ = 0L; + pairIdCount_ = 0L; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveMobileDataStatus + .RemovePairDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public RemoveMobileDataStatus parsePartialFrom( + public RemovePairDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -9978,25 +13514,25 @@ public RemoveMobileDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveMobileDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface IngestPairDataStatusOrBuilder + public interface IngestUserIdDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -10018,33 +13554,33 @@ public interface IngestPairDataStatusOrBuilder * * *
-     * The total count of pair ids sent in the upload request for the
-     * destination. Includes all pair ids in the request, regardless of
+     * The total count of user ids sent in the upload request for the
+     * destination. Includes all user ids in the request, regardless of
      * whether they were successfully ingested or not.
      * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * - * @return The pairIdCount. + * @return The userIdCount. */ - long getPairIdCount(); + long getUserIdCount(); } /** * * *
-   * The status of the pair data ingestion to the destination containing stats
-   * related to the ingestion.
+   * The status of the user id data ingestion to the destination containing
+   * stats related to the ingestion.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus} */ - public static final class IngestPairDataStatus extends com.google.protobuf.GeneratedMessage + public static final class IngestUserIdDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) - IngestPairDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) + IngestUserIdDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -10054,30 +13590,31 @@ public static final class IngestPairDataStatus extends com.google.protobuf.Gener /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "IngestPairDataStatus"); + "IngestUserIdDataStatus"); } - // Use IngestPairDataStatus.newBuilder() to construct. - private IngestPairDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use IngestUserIdDataStatus.newBuilder() to construct. + private IngestUserIdDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private IngestPairDataStatus() {} + private IngestUserIdDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus.class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus.Builder - .class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + .Builder.class); } public static final int RECORD_COUNT_FIELD_NUMBER = 1; @@ -10101,25 +13638,25 @@ public long getRecordCount() { return recordCount_; } - public static final int PAIR_ID_COUNT_FIELD_NUMBER = 2; - private long pairIdCount_ = 0L; + public static final int USER_ID_COUNT_FIELD_NUMBER = 2; + private long userIdCount_ = 0L; /** * * *
-     * The total count of pair ids sent in the upload request for the
-     * destination. Includes all pair ids in the request, regardless of
+     * The total count of user ids sent in the upload request for the
+     * destination. Includes all user ids in the request, regardless of
      * whether they were successfully ingested or not.
      * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * - * @return The pairIdCount. + * @return The userIdCount. */ @java.lang.Override - public long getPairIdCount() { - return pairIdCount_; + public long getUserIdCount() { + return userIdCount_; } private byte memoizedIsInitialized = -1; @@ -10139,8 +13676,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (pairIdCount_ != 0L) { - output.writeInt64(2, pairIdCount_); + if (userIdCount_ != 0L) { + output.writeInt64(2, userIdCount_); } getUnknownFields().writeTo(output); } @@ -10154,8 +13691,8 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - if (pairIdCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, pairIdCount_); + if (userIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, userIdCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10169,14 +13706,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; - if (getPairIdCount() != other.getPairIdCount()) return false; + if (getUserIdCount() != other.getUserIdCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10190,33 +13727,33 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + PAIR_ID_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPairIdCount()); + hash = (37 * hash) + USER_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserIdCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10224,23 +13761,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10248,12 +13785,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10261,12 +13798,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10285,7 +13822,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -10304,36 +13842,36 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The status of the pair data ingestion to the destination containing stats
-     * related to the ingestion.
+     * The status of the user id data ingestion to the destination containing
+     * stats related to the ingestion.
      * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatusOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus .Builder.class); } // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus.newBuilder() + // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -10345,27 +13883,27 @@ public Builder clear() { super.clear(); bitField0_ = 0; recordCount_ = 0L; - pairIdCount_ = 0L; + userIdCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_descriptor; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus .getDefaultInstance(); } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus result = + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -10374,10 +13912,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus( this); if (bitField0_ != 0) { buildPartial0(result); @@ -10387,13 +13925,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus result) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recordCount_ = recordCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.pairIdCount_ = pairIdCount_; + result.userIdCount_ = userIdCount_; } } @@ -10401,9 +13939,9 @@ private void buildPartial0( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) { return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) other); } else { super.mergeFrom(other); @@ -10412,15 +13950,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus other) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus other) { if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus .getDefaultInstance()) return this; if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } - if (other.getPairIdCount() != 0L) { - setPairIdCount(other.getPairIdCount()); + if (other.getUserIdCount() != 0L) { + setUserIdCount(other.getUserIdCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -10456,7 +13994,7 @@ public Builder mergeFrom( } // case 8 case 16: { - pairIdCount_ = input.readInt64(); + userIdCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 @@ -10541,43 +14079,43 @@ public Builder clearRecordCount() { return this; } - private long pairIdCount_; + private long userIdCount_; /** * * *
-       * The total count of pair ids sent in the upload request for the
-       * destination. Includes all pair ids in the request, regardless of
+       * The total count of user ids sent in the upload request for the
+       * destination. Includes all user ids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * - * @return The pairIdCount. + * @return The userIdCount. */ @java.lang.Override - public long getPairIdCount() { - return pairIdCount_; + public long getUserIdCount() { + return userIdCount_; } /** * * *
-       * The total count of pair ids sent in the upload request for the
-       * destination. Includes all pair ids in the request, regardless of
+       * The total count of user ids sent in the upload request for the
+       * destination. Includes all user ids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * - * @param value The pairIdCount to set. + * @param value The userIdCount to set. * @return This builder for chaining. */ - public Builder setPairIdCount(long value) { + public Builder setUserIdCount(long value) { - pairIdCount_ = value; + userIdCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -10587,44 +14125,44 @@ public Builder setPairIdCount(long value) { * * *
-       * The total count of pair ids sent in the upload request for the
-       * destination. Includes all pair ids in the request, regardless of
+       * The total count of user ids sent in the upload request for the
+       * destination. Includes all user ids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * * @return This builder for chaining. */ - public Builder clearPairIdCount() { + public Builder clearUserIdCount() { bitField0_ = (bitField0_ & ~0x00000002); - pairIdCount_ = 0L; + userIdCount_ = 0L; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestPairDataStatus + .IngestUserIdDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public IngestPairDataStatus parsePartialFrom( + public IngestUserIdDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -10644,25 +14182,25 @@ public IngestPairDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RemovePairDataStatusOrBuilder + public interface RemoveUserIdDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -10684,32 +14222,32 @@ public interface RemovePairDataStatusOrBuilder * * *
-     * The total count of pair ids sent in the removal request. Includes all
-     * pair ids in the request, regardless of whether they were successfully
+     * The total count of user ids sent in the removal request. Includes all
+     * user ids in the request, regardless of whether they were successfully
      * removed or not.
      * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * - * @return The pairIdCount. + * @return The userIdCount. */ - long getPairIdCount(); + long getUserIdCount(); } /** * * *
-   * The status of the pair data removal from the destination.
+   * The status of the user id data removal from the destination.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus} */ - public static final class RemovePairDataStatus extends com.google.protobuf.GeneratedMessage + public static final class RemoveUserIdDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) - RemovePairDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) + RemoveUserIdDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -10719,30 +14257,31 @@ public static final class RemovePairDataStatus extends com.google.protobuf.Gener /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "RemovePairDataStatus"); + "RemoveUserIdDataStatus"); } - // Use RemovePairDataStatus.newBuilder() to construct. - private RemovePairDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use RemoveUserIdDataStatus.newBuilder() to construct. + private RemoveUserIdDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private RemovePairDataStatus() {} + private RemoveUserIdDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus.class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus.Builder - .class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + .Builder.class); } public static final int RECORD_COUNT_FIELD_NUMBER = 1; @@ -10766,25 +14305,25 @@ public long getRecordCount() { return recordCount_; } - public static final int PAIR_ID_COUNT_FIELD_NUMBER = 2; - private long pairIdCount_ = 0L; + public static final int USER_ID_COUNT_FIELD_NUMBER = 2; + private long userIdCount_ = 0L; /** * * *
-     * The total count of pair ids sent in the removal request. Includes all
-     * pair ids in the request, regardless of whether they were successfully
+     * The total count of user ids sent in the removal request. Includes all
+     * user ids in the request, regardless of whether they were successfully
      * removed or not.
      * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * - * @return The pairIdCount. + * @return The userIdCount. */ @java.lang.Override - public long getPairIdCount() { - return pairIdCount_; + public long getUserIdCount() { + return userIdCount_; } private byte memoizedIsInitialized = -1; @@ -10804,8 +14343,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (pairIdCount_ != 0L) { - output.writeInt64(2, pairIdCount_); + if (userIdCount_ != 0L) { + output.writeInt64(2, userIdCount_); } getUnknownFields().writeTo(output); } @@ -10819,8 +14358,8 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - if (pairIdCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, pairIdCount_); + if (userIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, userIdCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10834,14 +14373,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; - if (getPairIdCount() != other.getPairIdCount()) return false; + if (getUserIdCount() != other.getUserIdCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10855,33 +14394,33 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + PAIR_ID_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPairIdCount()); + hash = (37 * hash) + USER_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserIdCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10889,23 +14428,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10913,12 +14452,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -10926,12 +14465,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10950,7 +14489,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -10969,35 +14509,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The status of the pair data removal from the destination.
+     * The status of the user id data removal from the destination.
      * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatusOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus .Builder.class); } // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus.newBuilder() + // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -11009,27 +14549,27 @@ public Builder clear() { super.clear(); bitField0_ = 0; recordCount_ = 0L; - pairIdCount_ = 0L; + userIdCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_descriptor; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus .getDefaultInstance(); } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus result = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -11038,10 +14578,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus( this); if (bitField0_ != 0) { buildPartial0(result); @@ -11051,13 +14591,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus result) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recordCount_ = recordCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.pairIdCount_ = pairIdCount_; + result.userIdCount_ = userIdCount_; } } @@ -11065,9 +14605,9 @@ private void buildPartial0( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) { return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) other); } else { super.mergeFrom(other); @@ -11076,15 +14616,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus other) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus other) { if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus .getDefaultInstance()) return this; if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } - if (other.getPairIdCount() != 0L) { - setPairIdCount(other.getPairIdCount()); + if (other.getUserIdCount() != 0L) { + setUserIdCount(other.getUserIdCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -11120,7 +14660,7 @@ public Builder mergeFrom( } // case 8 case 16: { - pairIdCount_ = input.readInt64(); + userIdCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 @@ -11205,43 +14745,43 @@ public Builder clearRecordCount() { return this; } - private long pairIdCount_; + private long userIdCount_; /** * * *
-       * The total count of pair ids sent in the removal request. Includes all
-       * pair ids in the request, regardless of whether they were successfully
+       * The total count of user ids sent in the removal request. Includes all
+       * user ids in the request, regardless of whether they were successfully
        * removed or not.
        * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * - * @return The pairIdCount. + * @return The userIdCount. */ @java.lang.Override - public long getPairIdCount() { - return pairIdCount_; + public long getUserIdCount() { + return userIdCount_; } /** * * *
-       * The total count of pair ids sent in the removal request. Includes all
-       * pair ids in the request, regardless of whether they were successfully
+       * The total count of user ids sent in the removal request. Includes all
+       * user ids in the request, regardless of whether they were successfully
        * removed or not.
        * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * - * @param value The pairIdCount to set. + * @param value The userIdCount to set. * @return This builder for chaining. */ - public Builder setPairIdCount(long value) { + public Builder setUserIdCount(long value) { - pairIdCount_ = value; + userIdCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -11251,44 +14791,44 @@ public Builder setPairIdCount(long value) { * * *
-       * The total count of pair ids sent in the removal request. Includes all
-       * pair ids in the request, regardless of whether they were successfully
+       * The total count of user ids sent in the removal request. Includes all
+       * user ids in the request, regardless of whether they were successfully
        * removed or not.
        * 
* - * int64 pair_id_count = 2; + * int64 user_id_count = 2; * * @return This builder for chaining. */ - public Builder clearPairIdCount() { + public Builder clearUserIdCount() { bitField0_ = (bitField0_ & ~0x00000002); - pairIdCount_ = 0L; + userIdCount_ = 0L; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemovePairDataStatus + .RemoveUserIdDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public RemovePairDataStatus parsePartialFrom( + public RemoveUserIdDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -11308,25 +14848,25 @@ public RemovePairDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePairDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface IngestUserIdDataStatusOrBuilder + public interface IngestPpidDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -11348,33 +14888,33 @@ public interface IngestUserIdDataStatusOrBuilder * * *
-     * The total count of user ids sent in the upload request for the
-     * destination. Includes all user ids in the request, regardless of
+     * The total count of ppids sent in the upload request for the
+     * destination. Includes all ppids in the request, regardless of
      * whether they were successfully ingested or not.
      * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * - * @return The userIdCount. + * @return The ppidCount. */ - long getUserIdCount(); + long getPpidCount(); } /** * * *
-   * The status of the user id data ingestion to the destination containing
-   * stats related to the ingestion.
+   * The status of the ppid data ingestion to the destination containing stats
+   * related to the ingestion.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus} */ - public static final class IngestUserIdDataStatus extends com.google.protobuf.GeneratedMessage + public static final class IngestPpidDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) - IngestUserIdDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) + IngestPpidDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -11384,31 +14924,30 @@ public static final class IngestUserIdDataStatus extends com.google.protobuf.Gen /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "IngestUserIdDataStatus"); + "IngestPpidDataStatus"); } - // Use IngestUserIdDataStatus.newBuilder() to construct. - private IngestUserIdDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use IngestPpidDataStatus.newBuilder() to construct. + private IngestPpidDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private IngestUserIdDataStatus() {} + private IngestPpidDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus - .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus - .Builder.class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus.Builder + .class); } public static final int RECORD_COUNT_FIELD_NUMBER = 1; @@ -11432,25 +14971,25 @@ public long getRecordCount() { return recordCount_; } - public static final int USER_ID_COUNT_FIELD_NUMBER = 2; - private long userIdCount_ = 0L; + public static final int PPID_COUNT_FIELD_NUMBER = 2; + private long ppidCount_ = 0L; /** * * *
-     * The total count of user ids sent in the upload request for the
-     * destination. Includes all user ids in the request, regardless of
+     * The total count of ppids sent in the upload request for the
+     * destination. Includes all ppids in the request, regardless of
      * whether they were successfully ingested or not.
      * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * - * @return The userIdCount. + * @return The ppidCount. */ @java.lang.Override - public long getUserIdCount() { - return userIdCount_; + public long getPpidCount() { + return ppidCount_; } private byte memoizedIsInitialized = -1; @@ -11470,8 +15009,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (userIdCount_ != 0L) { - output.writeInt64(2, userIdCount_); + if (ppidCount_ != 0L) { + output.writeInt64(2, ppidCount_); } getUnknownFields().writeTo(output); } @@ -11485,8 +15024,8 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - if (userIdCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, userIdCount_); + if (ppidCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ppidCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -11500,14 +15039,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; - if (getUserIdCount() != other.getUserIdCount()) return false; + if (getPpidCount() != other.getPpidCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11521,33 +15060,33 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + USER_ID_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserIdCount()); + hash = (37 * hash) + PPID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPpidCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -11555,23 +15094,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -11579,12 +15118,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -11592,12 +15131,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -11616,8 +15155,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus - prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -11636,36 +15174,36 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The status of the user id data ingestion to the destination containing
-     * stats related to the ingestion.
+     * The status of the ppid data ingestion to the destination containing stats
+     * related to the ingestion.
      * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatusOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus .Builder.class); } // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus.newBuilder() + // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -11677,27 +15215,27 @@ public Builder clear() { super.clear(); bitField0_ = 0; recordCount_ = 0L; - userIdCount_ = 0L; + ppidCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_descriptor; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus .getDefaultInstance(); } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus result = + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -11706,10 +15244,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus( this); if (bitField0_ != 0) { buildPartial0(result); @@ -11719,13 +15257,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus result) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recordCount_ = recordCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.userIdCount_ = userIdCount_; + result.ppidCount_ = ppidCount_; } } @@ -11733,9 +15271,9 @@ private void buildPartial0( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) { return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) other); } else { super.mergeFrom(other); @@ -11744,15 +15282,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus other) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus other) { if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus .getDefaultInstance()) return this; if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } - if (other.getUserIdCount() != 0L) { - setUserIdCount(other.getUserIdCount()); + if (other.getPpidCount() != 0L) { + setPpidCount(other.getPpidCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -11788,7 +15326,7 @@ public Builder mergeFrom( } // case 8 case 16: { - userIdCount_ = input.readInt64(); + ppidCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 @@ -11873,43 +15411,43 @@ public Builder clearRecordCount() { return this; } - private long userIdCount_; + private long ppidCount_; /** * * *
-       * The total count of user ids sent in the upload request for the
-       * destination. Includes all user ids in the request, regardless of
+       * The total count of ppids sent in the upload request for the
+       * destination. Includes all ppids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * - * @return The userIdCount. + * @return The ppidCount. */ @java.lang.Override - public long getUserIdCount() { - return userIdCount_; + public long getPpidCount() { + return ppidCount_; } /** * * *
-       * The total count of user ids sent in the upload request for the
-       * destination. Includes all user ids in the request, regardless of
+       * The total count of ppids sent in the upload request for the
+       * destination. Includes all ppids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * - * @param value The userIdCount to set. + * @param value The ppidCount to set. * @return This builder for chaining. */ - public Builder setUserIdCount(long value) { + public Builder setPpidCount(long value) { - userIdCount_ = value; + ppidCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -11919,44 +15457,44 @@ public Builder setUserIdCount(long value) { * * *
-       * The total count of user ids sent in the upload request for the
-       * destination. Includes all user ids in the request, regardless of
+       * The total count of ppids sent in the upload request for the
+       * destination. Includes all ppids in the request, regardless of
        * whether they were successfully ingested or not.
        * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * * @return This builder for chaining. */ - public Builder clearUserIdCount() { + public Builder clearPpidCount() { bitField0_ = (bitField0_ & ~0x00000002); - userIdCount_ = 0L; + ppidCount_ = 0L; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestUserIdDataStatus + .IngestPpidDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public IngestUserIdDataStatus parsePartialFrom( + public IngestPpidDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -11976,25 +15514,25 @@ public IngestUserIdDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserIdDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RemoveUserIdDataStatusOrBuilder + public interface RemovePpidDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -12016,32 +15554,32 @@ public interface RemoveUserIdDataStatusOrBuilder * * *
-     * The total count of user ids sent in the removal request. Includes all
-     * user ids in the request, regardless of whether they were successfully
+     * The total count of ppids sent in the removal request. Includes all
+     * ppids in the request, regardless of whether they were successfully
      * removed or not.
      * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * - * @return The userIdCount. + * @return The ppidCount. */ - long getUserIdCount(); + long getPpidCount(); } /** * * *
-   * The status of the user id data removal from the destination.
+   * The status of the ppid data removal from the destination.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus} */ - public static final class RemoveUserIdDataStatus extends com.google.protobuf.GeneratedMessage + public static final class RemovePpidDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) - RemoveUserIdDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) + RemovePpidDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -12051,31 +15589,30 @@ public static final class RemoveUserIdDataStatus extends com.google.protobuf.Gen /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "RemoveUserIdDataStatus"); + "RemovePpidDataStatus"); } - // Use RemoveUserIdDataStatus.newBuilder() to construct. - private RemoveUserIdDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use RemovePpidDataStatus.newBuilder() to construct. + private RemovePpidDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private RemoveUserIdDataStatus() {} + private RemovePpidDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus - .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus - .Builder.class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.Builder + .class); } public static final int RECORD_COUNT_FIELD_NUMBER = 1; @@ -12099,25 +15636,25 @@ public long getRecordCount() { return recordCount_; } - public static final int USER_ID_COUNT_FIELD_NUMBER = 2; - private long userIdCount_ = 0L; + public static final int PPID_COUNT_FIELD_NUMBER = 2; + private long ppidCount_ = 0L; /** * * *
-     * The total count of user ids sent in the removal request. Includes all
-     * user ids in the request, regardless of whether they were successfully
+     * The total count of ppids sent in the removal request. Includes all
+     * ppids in the request, regardless of whether they were successfully
      * removed or not.
      * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * - * @return The userIdCount. + * @return The ppidCount. */ @java.lang.Override - public long getUserIdCount() { - return userIdCount_; + public long getPpidCount() { + return ppidCount_; } private byte memoizedIsInitialized = -1; @@ -12137,8 +15674,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (userIdCount_ != 0L) { - output.writeInt64(2, userIdCount_); + if (ppidCount_ != 0L) { + output.writeInt64(2, ppidCount_); } getUnknownFields().writeTo(output); } @@ -12152,8 +15689,8 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - if (userIdCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, userIdCount_); + if (ppidCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ppidCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12167,14 +15704,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; - if (getUserIdCount() != other.getUserIdCount()) return false; + if (getPpidCount() != other.getPpidCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12188,33 +15725,33 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + USER_ID_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUserIdCount()); + hash = (37 * hash) + PPID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPpidCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -12222,23 +15759,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -12246,12 +15783,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -12259,12 +15796,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -12283,8 +15820,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus - prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -12303,35 +15839,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * The status of the user id data removal from the destination.
+     * The status of the ppid data removal from the destination.
      * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatusOrBuilder { + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus .Builder.class); } // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus.newBuilder() + // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -12343,27 +15879,27 @@ public Builder clear() { super.clear(); bitField0_ = 0; recordCount_ = 0L; - userIdCount_ = 0L; + ppidCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_descriptor; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus .getDefaultInstance(); } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus result = + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -12372,10 +15908,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus( this); if (bitField0_ != 0) { buildPartial0(result); @@ -12385,13 +15921,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus result) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.recordCount_ = recordCount_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.userIdCount_ = userIdCount_; + result.ppidCount_ = ppidCount_; } } @@ -12399,9 +15935,9 @@ private void buildPartial0( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) { return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) other); } else { super.mergeFrom(other); @@ -12410,15 +15946,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus other) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus other) { if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus .getDefaultInstance()) return this; if (other.getRecordCount() != 0L) { setRecordCount(other.getRecordCount()); } - if (other.getUserIdCount() != 0L) { - setUserIdCount(other.getUserIdCount()); + if (other.getPpidCount() != 0L) { + setPpidCount(other.getPpidCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -12454,7 +15990,7 @@ public Builder mergeFrom( } // case 8 case 16: { - userIdCount_ = input.readInt64(); + ppidCount_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 @@ -12539,43 +16075,43 @@ public Builder clearRecordCount() { return this; } - private long userIdCount_; + private long ppidCount_; /** * * *
-       * The total count of user ids sent in the removal request. Includes all
-       * user ids in the request, regardless of whether they were successfully
+       * The total count of ppids sent in the removal request. Includes all
+       * ppids in the request, regardless of whether they were successfully
        * removed or not.
        * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * - * @return The userIdCount. + * @return The ppidCount. */ @java.lang.Override - public long getUserIdCount() { - return userIdCount_; + public long getPpidCount() { + return ppidCount_; } /** * * *
-       * The total count of user ids sent in the removal request. Includes all
-       * user ids in the request, regardless of whether they were successfully
+       * The total count of ppids sent in the removal request. Includes all
+       * ppids in the request, regardless of whether they were successfully
        * removed or not.
        * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * - * @param value The userIdCount to set. + * @param value The ppidCount to set. * @return This builder for chaining. */ - public Builder setUserIdCount(long value) { + public Builder setPpidCount(long value) { - userIdCount_ = value; + ppidCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -12585,44 +16121,44 @@ public Builder setUserIdCount(long value) { * * *
-       * The total count of user ids sent in the removal request. Includes all
-       * user ids in the request, regardless of whether they were successfully
+       * The total count of ppids sent in the removal request. Includes all
+       * ppids in the request, regardless of whether they were successfully
        * removed or not.
        * 
* - * int64 user_id_count = 2; + * int64 ppid_count = 2; * * @return This builder for chaining. */ - public Builder clearUserIdCount() { + public Builder clearPpidCount() { bitField0_ = (bitField0_ & ~0x00000002); - userIdCount_ = 0L; + ppidCount_ = 0L; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveUserIdDataStatus + .RemovePpidDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public RemoveUserIdDataStatus parsePartialFrom( + public RemovePpidDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -12642,25 +16178,25 @@ public RemoveUserIdDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveUserIdDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface IngestPpidDataStatusOrBuilder + public interface IngestCompositeDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -12682,33 +16218,130 @@ public interface IngestPpidDataStatusOrBuilder * * *
-     * The total count of ppids sent in the upload request for the
-     * destination. Includes all ppids in the request, regardless of
-     * whether they were successfully ingested or not.
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
      * 
* - * int64 ppid_count = 2; + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + java.util.List + getDataTypeCountsList(); + + /** * - * @return The ppidCount. + * + *
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ - long getPpidCount(); + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount getDataTypeCounts( + int index); + + /** + * + * + *
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + int getDataTypeCountsCount(); + + /** + * + * + *
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + java.util.List< + ? extends + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + getDataTypeCountsOrBuilderList(); + + /** + * + * + *
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder + getDataTypeCountsOrBuilder(int index); + + /** + * + * + *
+     * The match rate range of the upload.
+     * 
+ * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @return The enum numeric value on the wire for uploadMatchRateRange. + */ + int getUploadMatchRateRangeValue(); + + /** + * + * + *
+     * The match rate range of the upload.
+     * 
+ * + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * + * @return The uploadMatchRateRange. + */ + com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange(); } /** * * *
-   * The status of the ppid data ingestion to the destination containing stats
-   * related to the ingestion.
+   * The status of the composite data ingestion to the destination containing
+   * stats related to the ingestion.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus} */ - public static final class IngestPpidDataStatus extends com.google.protobuf.GeneratedMessage + public static final class IngestCompositeDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) - IngestPpidDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) + IngestCompositeDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -12718,72 +16351,199 @@ public static final class IngestPpidDataStatus extends com.google.protobuf.Gener /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "IngestPpidDataStatus"); + "IngestCompositeDataStatus"); } - // Use IngestPpidDataStatus.newBuilder() to construct. - private IngestPpidDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use IngestCompositeDataStatus.newBuilder() to construct. + private IngestCompositeDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private IngestPpidDataStatus() {} + private IngestCompositeDataStatus() { + dataTypeCounts_ = java.util.Collections.emptyList(); + uploadMatchRateRange_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + .Builder.class); + } + + public static final int RECORD_COUNT_FIELD_NUMBER = 1; + private long recordCount_ = 0L; + + /** + * + * + *
+     * The total count of audience members sent in the upload request for the
+     * destination. Includes all audience members in the request, regardless of
+     * whether they were successfully ingested or not.
+     * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + @java.lang.Override + public long getRecordCount() { + return recordCount_; + } + + public static final int DATA_TYPE_COUNTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + dataTypeCounts_; + + /** + * + * + *
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + @java.lang.Override + public java.util.List + getDataTypeCountsList() { + return dataTypeCounts_; + } + + /** + * + * + *
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + getDataTypeCountsOrBuilderList() { + return dataTypeCounts_; + } + + /** + * + * + *
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + @java.lang.Override + public int getDataTypeCountsCount() { + return dataTypeCounts_.size(); + } + + /** + * + * + *
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + getDataTypeCounts(int index) { + return dataTypeCounts_.get(index); } + /** + * + * + *
+     * The total count of data types sent in the upload request for the
+     * destination, broken down by data type. Includes all data types in
+     * the request, regardless of whether they were successfully ingested or
+     * not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus.class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus.Builder - .class); + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder + getDataTypeCountsOrBuilder(int index) { + return dataTypeCounts_.get(index); } - public static final int RECORD_COUNT_FIELD_NUMBER = 1; - private long recordCount_ = 0L; + public static final int UPLOAD_MATCH_RATE_RANGE_FIELD_NUMBER = 3; + private int uploadMatchRateRange_ = 0; /** * * *
-     * The total count of audience members sent in the upload request for the
-     * destination. Includes all audience members in the request, regardless of
-     * whether they were successfully ingested or not.
+     * The match rate range of the upload.
      * 
* - * int64 record_count = 1; + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; * - * @return The recordCount. + * @return The enum numeric value on the wire for uploadMatchRateRange. */ @java.lang.Override - public long getRecordCount() { - return recordCount_; + public int getUploadMatchRateRangeValue() { + return uploadMatchRateRange_; } - public static final int PPID_COUNT_FIELD_NUMBER = 2; - private long ppidCount_ = 0L; - /** * * *
-     * The total count of ppids sent in the upload request for the
-     * destination. Includes all ppids in the request, regardless of
-     * whether they were successfully ingested or not.
+     * The match rate range of the upload.
      * 
* - * int64 ppid_count = 2; + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; * - * @return The ppidCount. + * @return The uploadMatchRateRange. */ @java.lang.Override - public long getPpidCount() { - return ppidCount_; + public com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange() { + com.google.ads.datamanager.v1.MatchRateRange result = + com.google.ads.datamanager.v1.MatchRateRange.forNumber(uploadMatchRateRange_); + return result == null ? com.google.ads.datamanager.v1.MatchRateRange.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -12803,446 +16563,1064 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (ppidCount_ != 0L) { - output.writeInt64(2, ppidCount_); + for (int i = 0; i < dataTypeCounts_.size(); i++) { + output.writeMessage(2, dataTypeCounts_.get(i)); + } + if (uploadMatchRateRange_ + != com.google.ads.datamanager.v1.MatchRateRange.MATCH_RATE_RANGE_UNKNOWN.getNumber()) { + output.writeEnum(3, uploadMatchRateRange_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (recordCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); + } + for (int i = 0; i < dataTypeCounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataTypeCounts_.get(i)); + } + if (uploadMatchRateRange_ + != com.google.ads.datamanager.v1.MatchRateRange.MATCH_RATE_RANGE_UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, uploadMatchRateRange_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) obj; + + if (getRecordCount() != other.getRecordCount()) return false; + if (!getDataTypeCountsList().equals(other.getDataTypeCountsList())) return false; + if (uploadMatchRateRange_ != other.uploadMatchRateRange_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); + if (getDataTypeCountsCount() > 0) { + hash = (37 * hash) + DATA_TYPE_COUNTS_FIELD_NUMBER; + hash = (53 * hash) + getDataTypeCountsList().hashCode(); + } + hash = (37 * hash) + UPLOAD_MATCH_RATE_RANGE_FIELD_NUMBER; + hash = (53 * hash) + uploadMatchRateRange_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The status of the composite data ingestion to the destination containing
+     * stats related to the ingestion.
+     * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + .Builder.class); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + // Construct using + // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus.newBuilder() + private Builder() {} - size = 0; - if (recordCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); - } - if (ppidCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ppidCount_); + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordCount_ = 0L; + if (dataTypeCountsBuilder_ == null) { + dataTypeCounts_ = java.util.Collections.emptyList(); + } else { + dataTypeCounts_ = null; + dataTypeCountsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + uploadMatchRateRange_ = 0; + return this; } - if (!(obj - instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus)) { - return super.equals(obj); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_descriptor; } - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) obj; - if (getRecordCount() != other.getRecordCount()) return false; - if (getPpidCount() != other.getPpidCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + .getDefaultInstance(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + PPID_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPpidCount()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + buildPartial() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private void buildPartialRepeatedFields( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + result) { + if (dataTypeCountsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dataTypeCounts_ = java.util.Collections.unmodifiableList(dataTypeCounts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dataTypeCounts_ = dataTypeCounts_; + } else { + result.dataTypeCounts_ = dataTypeCountsBuilder_.build(); + } + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private void buildPartial0( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordCount_ = recordCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uploadMatchRateRange_ = uploadMatchRateRange_; + } + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) { + return mergeFrom( + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public Builder mergeFrom( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + other) { + if (other + == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + .getDefaultInstance()) return this; + if (other.getRecordCount() != 0L) { + setRecordCount(other.getRecordCount()); + } + if (dataTypeCountsBuilder_ == null) { + if (!other.dataTypeCounts_.isEmpty()) { + if (dataTypeCounts_.isEmpty()) { + dataTypeCounts_ = other.dataTypeCounts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.addAll(other.dataTypeCounts_); + } + onChanged(); + } + } else { + if (!other.dataTypeCounts_.isEmpty()) { + if (dataTypeCountsBuilder_.isEmpty()) { + dataTypeCountsBuilder_.dispose(); + dataTypeCountsBuilder_ = null; + dataTypeCounts_ = other.dataTypeCounts_; + bitField0_ = (bitField0_ & ~0x00000002); + dataTypeCountsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataTypeCountsFieldBuilder() + : null; + } else { + dataTypeCountsBuilder_.addAllMessages(other.dataTypeCounts_); + } + } + } + if (other.uploadMatchRateRange_ != 0) { + setUploadMatchRateRangeValue(other.getUploadMatchRateRangeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + recordCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount m = + input.readMessage( + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + .parser(), + extensionRegistry); + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(m); + } else { + dataTypeCountsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + uploadMatchRateRange_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private int bitField0_; - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + private long recordCount_; - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + @java.lang.Override + public long getRecordCount() { + return recordCount_; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @param value The recordCount to set. + * @return This builder for chaining. + */ + public Builder setRecordCount(long value) { - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + recordCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearRecordCount() { + bitField0_ = (bitField0_ & ~0x00000001); + recordCount_ = 0L; + onChanged(); + return this; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private java.util.List< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount> + dataTypeCounts_ = java.util.Collections.emptyList(); - public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private void ensureDataTypeCountsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dataTypeCounts_ = + new java.util.ArrayList< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount>( + dataTypeCounts_); + bitField0_ |= 0x00000002; + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + dataTypeCountsBuilder_; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public java.util.List + getDataTypeCountsList() { + if (dataTypeCountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataTypeCounts_); + } else { + return dataTypeCountsBuilder_.getMessageList(); + } + } - /** - * - * - *
-     * The status of the ppid data ingestion to the destination containing stats
-     * related to the ingestion.
-     * 
- * - * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_descriptor; + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public int getDataTypeCountsCount() { + if (dataTypeCountsBuilder_ == null) { + return dataTypeCounts_.size(); + } else { + return dataTypeCountsBuilder_.getCount(); + } } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - .Builder.class); + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + getDataTypeCounts(int index) { + if (dataTypeCountsBuilder_ == null) { + return dataTypeCounts_.get(index); + } else { + return dataTypeCountsBuilder_.getMessage(index); + } } - // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder setDataTypeCounts( + int index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { + if (dataTypeCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.set(index, value); + onChanged(); + } else { + dataTypeCountsBuilder_.setMessage(index, value); + } + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - recordCount_ = 0L; - ppidCount_ = 0L; + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder setDataTypeCounts( + int index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + builderForValue) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.set(index, builderForValue.build()); + onChanged(); + } else { + dataTypeCountsBuilder_.setMessage(index, builderForValue.build()); + } return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_descriptor; + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder addDataTypeCounts( + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { + if (dataTypeCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(value); + onChanged(); + } else { + dataTypeCountsBuilder_.addMessage(value); + } + return this; } - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - .getDefaultInstance(); + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder addDataTypeCounts( + int index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { + if (dataTypeCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(index, value); + onChanged(); + } else { + dataTypeCountsBuilder_.addMessage(index, value); + } + return this; } - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder addDataTypeCounts( + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + builderForValue) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(builderForValue.build()); + onChanged(); + } else { + dataTypeCountsBuilder_.addMessage(builderForValue.build()); } - return result; + return this; } - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus( - this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder addDataTypeCounts( + int index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + builderForValue) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(index, builderForValue.build()); + onChanged(); + } else { + dataTypeCountsBuilder_.addMessage(index, builderForValue.build()); } - onBuilt(); - return result; + return this; } - private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.recordCount_ = recordCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.ppidCount_ = ppidCount_; + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder addAllDataTypeCounts( + java.lang.Iterable< + ? extends com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount> + values) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTypeCounts_); + onChanged(); + } else { + dataTypeCountsBuilder_.addAllMessages(values); } + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) { - return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) - other); + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder clearDataTypeCounts() { + if (dataTypeCountsBuilder_ == null) { + dataTypeCounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); } else { - super.mergeFrom(other); - return this; + dataTypeCountsBuilder_.clear(); } + return this; } - public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus other) { - if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus - .getDefaultInstance()) return this; - if (other.getRecordCount() != 0L) { - setRecordCount(other.getRecordCount()); - } - if (other.getPpidCount() != 0L) { - setPpidCount(other.getPpidCount()); + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder removeDataTypeCounts(int index) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.remove(index); + onChanged(); + } else { + dataTypeCountsBuilder_.remove(index); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + getDataTypeCountsBuilder(int index) { + return internalGetDataTypeCountsFieldBuilder().getBuilder(index); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder + getDataTypeCountsOrBuilder(int index) { + if (dataTypeCountsBuilder_ == null) { + return dataTypeCounts_.get(index); + } else { + return dataTypeCountsBuilder_.getMessageOrBuilder(index); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - recordCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - ppidCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; } - private int bitField0_; + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public java.util.List< + ? extends + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + getDataTypeCountsOrBuilderList() { + if (dataTypeCountsBuilder_ != null) { + return dataTypeCountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataTypeCounts_); + } + } - private long recordCount_; + /** + * + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + addDataTypeCountsBuilder() { + return internalGetDataTypeCountsFieldBuilder() + .addBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + .getDefaultInstance()); + } /** * * *
-       * The total count of audience members sent in the upload request for the
-       * destination. Includes all audience members in the request, regardless of
-       * whether they were successfully ingested or not.
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
        * 
* - * int64 record_count = 1; + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + addDataTypeCountsBuilder(int index) { + return internalGetDataTypeCountsFieldBuilder() + .addBuilder( + index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + .getDefaultInstance()); + } + + /** * - * @return The recordCount. + * + *
+       * The total count of data types sent in the upload request for the
+       * destination, broken down by data type. Includes all data types in
+       * the request, regardless of whether they were successfully ingested or
+       * not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ - @java.lang.Override - public long getRecordCount() { - return recordCount_; + public java.util.List< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder> + getDataTypeCountsBuilderList() { + return internalGetDataTypeCountsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + internalGetDataTypeCountsFieldBuilder() { + if (dataTypeCountsBuilder_ == null) { + dataTypeCountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder>( + dataTypeCounts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + dataTypeCounts_ = null; + } + return dataTypeCountsBuilder_; } + private int uploadMatchRateRange_ = 0; + /** * * *
-       * The total count of audience members sent in the upload request for the
-       * destination. Includes all audience members in the request, regardless of
-       * whether they were successfully ingested or not.
+       * The match rate range of the upload.
        * 
* - * int64 record_count = 1; + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; * - * @param value The recordCount to set. - * @return This builder for chaining. + * @return The enum numeric value on the wire for uploadMatchRateRange. */ - public Builder setRecordCount(long value) { - - recordCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public int getUploadMatchRateRangeValue() { + return uploadMatchRateRange_; } /** * * *
-       * The total count of audience members sent in the upload request for the
-       * destination. Includes all audience members in the request, regardless of
-       * whether they were successfully ingested or not.
+       * The match rate range of the upload.
        * 
* - * int64 record_count = 1; + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; * + * @param value The enum numeric value on the wire for uploadMatchRateRange to set. * @return This builder for chaining. */ - public Builder clearRecordCount() { - bitField0_ = (bitField0_ & ~0x00000001); - recordCount_ = 0L; + public Builder setUploadMatchRateRangeValue(int value) { + uploadMatchRateRange_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private long ppidCount_; - /** * * *
-       * The total count of ppids sent in the upload request for the
-       * destination. Includes all ppids in the request, regardless of
-       * whether they were successfully ingested or not.
+       * The match rate range of the upload.
        * 
* - * int64 ppid_count = 2; + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; * - * @return The ppidCount. + * @return The uploadMatchRateRange. */ @java.lang.Override - public long getPpidCount() { - return ppidCount_; + public com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange() { + com.google.ads.datamanager.v1.MatchRateRange result = + com.google.ads.datamanager.v1.MatchRateRange.forNumber(uploadMatchRateRange_); + return result == null ? com.google.ads.datamanager.v1.MatchRateRange.UNRECOGNIZED : result; } /** * * *
-       * The total count of ppids sent in the upload request for the
-       * destination. Includes all ppids in the request, regardless of
-       * whether they were successfully ingested or not.
+       * The match rate range of the upload.
        * 
* - * int64 ppid_count = 2; + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; * - * @param value The ppidCount to set. + * @param value The uploadMatchRateRange to set. * @return This builder for chaining. */ - public Builder setPpidCount(long value) { - - ppidCount_ = value; - bitField0_ |= 0x00000002; + public Builder setUploadMatchRateRange(com.google.ads.datamanager.v1.MatchRateRange value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + uploadMatchRateRange_ = value.getNumber(); onChanged(); return this; } @@ -13251,44 +17629,43 @@ public Builder setPpidCount(long value) { * * *
-       * The total count of ppids sent in the upload request for the
-       * destination. Includes all ppids in the request, regardless of
-       * whether they were successfully ingested or not.
+       * The match rate range of the upload.
        * 
* - * int64 ppid_count = 2; + * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; * * @return This builder for chaining. */ - public Builder clearPpidCount() { - bitField0_ = (bitField0_ & ~0x00000002); - ppidCount_ = 0L; + public Builder clearUploadMatchRateRange() { + bitField0_ = (bitField0_ & ~0x00000004); + uploadMatchRateRange_ = 0; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestPpidDataStatus + .IngestCompositeDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestCompositeDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public IngestPpidDataStatus parsePartialFrom( + public IngestCompositeDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13308,25 +17685,25 @@ public IngestPpidDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPpidDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RemovePpidDataStatusOrBuilder + public interface RemoveCompositeDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -13348,32 +17725,98 @@ public interface RemovePpidDataStatusOrBuilder * * *
-     * The total count of ppids sent in the removal request. Includes all
-     * ppids in the request, regardless of whether they were successfully
-     * removed or not.
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
      * 
* - * int64 ppid_count = 2; + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + java.util.List + getDataTypeCountsList(); + + /** * - * @return The ppidCount. + * + *
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ - long getPpidCount(); + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount getDataTypeCounts( + int index); + + /** + * + * + *
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + int getDataTypeCountsCount(); + + /** + * + * + *
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + java.util.List< + ? extends + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + getDataTypeCountsOrBuilderList(); + + /** + * + * + *
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder + getDataTypeCountsOrBuilder(int index); } /** * * *
-   * The status of the ppid data removal from the destination.
+   * The status of the composite data removal from the destination.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus} */ - public static final class RemovePpidDataStatus extends com.google.protobuf.GeneratedMessage + public static final class RemoveCompositeDataStatus extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) - RemovePpidDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) + RemoveCompositeDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -13383,72 +17826,156 @@ public static final class RemovePpidDataStatus extends com.google.protobuf.Gener /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "RemovePpidDataStatus"); + "RemoveCompositeDataStatus"); } - // Use RemovePpidDataStatus.newBuilder() to construct. - private RemovePpidDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use RemoveCompositeDataStatus.newBuilder() to construct. + private RemoveCompositeDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private RemovePpidDataStatus() {} + private RemoveCompositeDataStatus() { + dataTypeCounts_ = java.util.Collections.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.Builder - .class); + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .Builder.class); + } + + public static final int RECORD_COUNT_FIELD_NUMBER = 1; + private long recordCount_ = 0L; + + /** + * + * + *
+     * The total count of audience members sent in the removal request. Includes
+     * all audience members in the request, regardless of whether they were
+     * successfully removed or not.
+     * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + @java.lang.Override + public long getRecordCount() { + return recordCount_; + } + + public static final int DATA_TYPE_COUNTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + dataTypeCounts_; + + /** + * + * + *
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + @java.lang.Override + public java.util.List + getDataTypeCountsList() { + return dataTypeCounts_; + } + + /** + * + * + *
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + getDataTypeCountsOrBuilderList() { + return dataTypeCounts_; } - public static final int RECORD_COUNT_FIELD_NUMBER = 1; - private long recordCount_ = 0L; - /** * * *
-     * The total count of audience members sent in the removal request. Includes
-     * all audience members in the request, regardless of whether they were
-     * successfully removed or not.
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
      * 
* - * int64 record_count = 1; - * - * @return The recordCount. + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ @java.lang.Override - public long getRecordCount() { - return recordCount_; + public int getDataTypeCountsCount() { + return dataTypeCounts_.size(); } - public static final int PPID_COUNT_FIELD_NUMBER = 2; - private long ppidCount_ = 0L; - /** * * *
-     * The total count of ppids sent in the removal request. Includes all
-     * ppids in the request, regardless of whether they were successfully
-     * removed or not.
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
      * 
* - * int64 ppid_count = 2; + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + getDataTypeCounts(int index) { + return dataTypeCounts_.get(index); + } + + /** * - * @return The ppidCount. + * + *
+     * The total count of data types sent in the removal request, broken down
+     * by data type. Includes all data types in the request, regardless
+     * of whether they were successfully removed or not.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ @java.lang.Override - public long getPpidCount() { - return ppidCount_; + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder + getDataTypeCountsOrBuilder(int index) { + return dataTypeCounts_.get(index); } private byte memoizedIsInitialized = -1; @@ -13468,8 +17995,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - if (ppidCount_ != 0L) { - output.writeInt64(2, ppidCount_); + for (int i = 0; i < dataTypeCounts_.size(); i++) { + output.writeMessage(2, dataTypeCounts_.get(i)); } getUnknownFields().writeTo(output); } @@ -13483,8 +18010,8 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - if (ppidCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ppidCount_); + for (int i = 0; i < dataTypeCounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataTypeCounts_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13498,14 +18025,14 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus)) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus)) { return super.equals(obj); } - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) obj; + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) obj; if (getRecordCount() != other.getRecordCount()) return false; - if (getPpidCount() != other.getPpidCount()) return false; + if (!getDataTypeCountsList().equals(other.getDataTypeCountsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13519,33 +18046,39 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - hash = (37 * hash) + PPID_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPpidCount()); + if (getDataTypeCountsCount() > 0) { + hash = (37 * hash) + DATA_TYPE_COUNTS_FIELD_NUMBER; + hash = (53 * hash) + getDataTypeCountsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -13553,23 +18086,27 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -13577,12 +18114,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -13590,12 +18129,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -13614,238 +18155,615 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus prototype) { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The status of the composite data removal from the destination.
+     * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .Builder.class); + } + + // Construct using + // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordCount_ = 0L; + if (dataTypeCountsBuilder_ == null) { + dataTypeCounts_ = java.util.Collections.emptyList(); + } else { + dataTypeCounts_ = null; + dataTypeCountsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + buildPartial() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + result) { + if (dataTypeCountsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dataTypeCounts_ = java.util.Collections.unmodifiableList(dataTypeCounts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dataTypeCounts_ = dataTypeCounts_; + } else { + result.dataTypeCounts_ = dataTypeCountsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordCount_ = recordCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) { + return mergeFrom( + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + other) { + if (other + == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + .getDefaultInstance()) return this; + if (other.getRecordCount() != 0L) { + setRecordCount(other.getRecordCount()); + } + if (dataTypeCountsBuilder_ == null) { + if (!other.dataTypeCounts_.isEmpty()) { + if (dataTypeCounts_.isEmpty()) { + dataTypeCounts_ = other.dataTypeCounts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.addAll(other.dataTypeCounts_); + } + onChanged(); + } + } else { + if (!other.dataTypeCounts_.isEmpty()) { + if (dataTypeCountsBuilder_.isEmpty()) { + dataTypeCountsBuilder_.dispose(); + dataTypeCountsBuilder_ = null; + dataTypeCounts_ = other.dataTypeCounts_; + bitField0_ = (bitField0_ & ~0x00000002); + dataTypeCountsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataTypeCountsFieldBuilder() + : null; + } else { + dataTypeCountsBuilder_.addAllMessages(other.dataTypeCounts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
-     * The status of the ppid data removal from the destination.
-     * 
- * - * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_descriptor; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + recordCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount m = + input.readMessage( + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + .parser(), + extensionRegistry); + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(m); + } else { + dataTypeCountsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } + private int bitField0_; + + private long recordCount_; + + /** + * + * + *
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .Builder.class); + public long getRecordCount() { + return recordCount_; } - // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus.newBuilder() - private Builder() {} + /** + * + * + *
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
+       * 
+ * + * int64 record_count = 1; + * + * @param value The recordCount to set. + * @return This builder for chaining. + */ + public Builder setRecordCount(long value) { - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + recordCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; + /** + * + * + *
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearRecordCount() { + bitField0_ = (bitField0_ & ~0x00000001); recordCount_ = 0L; - ppidCount_ = 0L; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_descriptor; + private java.util.List< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount> + dataTypeCounts_ = java.util.Collections.emptyList(); + + private void ensureDataTypeCountsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dataTypeCounts_ = + new java.util.ArrayList< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount>( + dataTypeCounts_); + bitField0_ |= 0x00000002; + } } - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .getDefaultInstance(); + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + dataTypeCountsBuilder_; + + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public java.util.List + getDataTypeCountsList() { + if (dataTypeCountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataTypeCounts_); + } else { + return dataTypeCountsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public int getDataTypeCountsCount() { + if (dataTypeCountsBuilder_ == null) { + return dataTypeCounts_.size(); + } else { + return dataTypeCountsBuilder_.getCount(); + } } - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + getDataTypeCounts(int index) { + if (dataTypeCountsBuilder_ == null) { + return dataTypeCounts_.get(index); + } else { + return dataTypeCountsBuilder_.getMessage(index); } - return result; } - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus( - this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder setDataTypeCounts( + int index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { + if (dataTypeCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.set(index, value); + onChanged(); + } else { + dataTypeCountsBuilder_.setMessage(index, value); } - onBuilt(); - return result; + return this; } - private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.recordCount_ = recordCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.ppidCount_ = ppidCount_; + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder setDataTypeCounts( + int index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + builderForValue) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.set(index, builderForValue.build()); + onChanged(); + } else { + dataTypeCountsBuilder_.setMessage(index, builderForValue.build()); } + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) { - return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) - other); + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder addDataTypeCounts( + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { + if (dataTypeCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(value); + onChanged(); } else { - super.mergeFrom(other); - return this; + dataTypeCountsBuilder_.addMessage(value); } + return this; } - public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus other) { - if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus - .getDefaultInstance()) return this; - if (other.getRecordCount() != 0L) { - setRecordCount(other.getRecordCount()); - } - if (other.getPpidCount() != 0L) { - setPpidCount(other.getPpidCount()); + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder addDataTypeCounts( + int index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { + if (dataTypeCountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(index, value); + onChanged(); + } else { + dataTypeCountsBuilder_.addMessage(index, value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder addDataTypeCounts( + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + builderForValue) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(builderForValue.build()); + onChanged(); + } else { + dataTypeCountsBuilder_.addMessage(builderForValue.build()); + } + return this; } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - recordCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - ppidCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public Builder addDataTypeCounts( + int index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + builderForValue) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.add(index, builderForValue.build()); onChanged(); - } // finally + } else { + dataTypeCountsBuilder_.addMessage(index, builderForValue.build()); + } return this; } - private int bitField0_; - - private long recordCount_; - /** * * *
-       * The total count of audience members sent in the removal request. Includes
-       * all audience members in the request, regardless of whether they were
-       * successfully removed or not.
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
        * 
* - * int64 record_count = 1; - * - * @return The recordCount. + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ - @java.lang.Override - public long getRecordCount() { - return recordCount_; + public Builder addAllDataTypeCounts( + java.lang.Iterable< + ? extends com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount> + values) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTypeCounts_); + onChanged(); + } else { + dataTypeCountsBuilder_.addAllMessages(values); + } + return this; } /** * * *
-       * The total count of audience members sent in the removal request. Includes
-       * all audience members in the request, regardless of whether they were
-       * successfully removed or not.
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
        * 
* - * int64 record_count = 1; - * - * @param value The recordCount to set. - * @return This builder for chaining. + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ - public Builder setRecordCount(long value) { - - recordCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); + public Builder clearDataTypeCounts() { + if (dataTypeCountsBuilder_ == null) { + dataTypeCounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dataTypeCountsBuilder_.clear(); + } return this; } @@ -13853,106 +18771,195 @@ public Builder setRecordCount(long value) { * * *
-       * The total count of audience members sent in the removal request. Includes
-       * all audience members in the request, regardless of whether they were
-       * successfully removed or not.
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
        * 
* - * int64 record_count = 1; - * - * @return This builder for chaining. + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ - public Builder clearRecordCount() { - bitField0_ = (bitField0_ & ~0x00000001); - recordCount_ = 0L; - onChanged(); + public Builder removeDataTypeCounts(int index) { + if (dataTypeCountsBuilder_ == null) { + ensureDataTypeCountsIsMutable(); + dataTypeCounts_.remove(index); + onChanged(); + } else { + dataTypeCountsBuilder_.remove(index); + } return this; } - private long ppidCount_; - /** * * *
-       * The total count of ppids sent in the removal request. Includes all
-       * ppids in the request, regardless of whether they were successfully
-       * removed or not.
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
        * 
* - * int64 ppid_count = 2; - * - * @return The ppidCount. + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ - @java.lang.Override - public long getPpidCount() { - return ppidCount_; + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + getDataTypeCountsBuilder(int index) { + return internalGetDataTypeCountsFieldBuilder().getBuilder(index); } /** * * *
-       * The total count of ppids sent in the removal request. Includes all
-       * ppids in the request, regardless of whether they were successfully
-       * removed or not.
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
        * 
* - * int64 ppid_count = 2; + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder + getDataTypeCountsOrBuilder(int index) { + if (dataTypeCountsBuilder_ == null) { + return dataTypeCounts_.get(index); + } else { + return dataTypeCountsBuilder_.getMessageOrBuilder(index); + } + } + + /** * - * @param value The ppidCount to set. - * @return This builder for chaining. + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ - public Builder setPpidCount(long value) { + public java.util.List< + ? extends + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + getDataTypeCountsOrBuilderList() { + if (dataTypeCountsBuilder_ != null) { + return dataTypeCountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataTypeCounts_); + } + } - ppidCount_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + /** + * + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + addDataTypeCountsBuilder() { + return internalGetDataTypeCountsFieldBuilder() + .addBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + .getDefaultInstance()); } /** * * *
-       * The total count of ppids sent in the removal request. Includes all
-       * ppids in the request, regardless of whether they were successfully
-       * removed or not.
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
        * 
* - * int64 ppid_count = 2; + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder + addDataTypeCountsBuilder(int index) { + return internalGetDataTypeCountsFieldBuilder() + .addBuilder( + index, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount + .getDefaultInstance()); + } + + /** * - * @return This builder for chaining. + * + *
+       * The total count of data types sent in the removal request, broken down
+       * by data type. Includes all data types in the request, regardless
+       * of whether they were successfully removed or not.
+       * 
+ * + * + * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; + * */ - public Builder clearPpidCount() { - bitField0_ = (bitField0_ & ~0x00000002); - ppidCount_ = 0L; - onChanged(); - return this; + public java.util.List< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder> + getDataTypeCountsBuilderList() { + return internalGetDataTypeCountsFieldBuilder().getBuilderList(); } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> + internalGetDataTypeCountsFieldBuilder() { + if (dataTypeCountsBuilder_ == null) { + dataTypeCountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder>( + dataTypeCounts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + dataTypeCounts_ = null; + } + return dataTypeCountsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemovePpidDataStatus + .RemoveCompositeDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus(); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveCompositeDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public RemovePpidDataStatus parsePartialFrom( + public RemoveCompositeDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13972,25 +18979,25 @@ public RemovePpidDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePpidDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface IngestCompositeDataStatusOrBuilder + public interface IngestGoogleUserIdDataStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus) com.google.protobuf.MessageOrBuilder { /** @@ -14012,130 +19019,34 @@ public interface IngestCompositeDataStatusOrBuilder * * *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - java.util.List - getDataTypeCountsList(); - - /** - * - * - *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount getDataTypeCounts( - int index); - - /** - * - * - *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - int getDataTypeCountsCount(); - - /** - * - * - *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - java.util.List< - ? extends - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - getDataTypeCountsOrBuilderList(); - - /** - * - * - *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder - getDataTypeCountsOrBuilder(int index); - - /** - * - * - *
-     * The match rate range of the upload.
-     * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; - * - * @return The enum numeric value on the wire for uploadMatchRateRange. - */ - int getUploadMatchRateRangeValue(); - - /** - * - * - *
-     * The match rate range of the upload.
+     * The total count of google user ids sent in the upload request for the
+     * destination. Includes all google user ids in the request, regardless of
+     * whether they were successfully ingested or not.
      * 
* - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * int64 google_user_id_count = 2; * - * @return The uploadMatchRateRange. + * @return The googleUserIdCount. */ - com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange(); + long getGoogleUserIdCount(); } /** * * *
-   * The status of the composite data ingestion to the destination containing
-   * stats related to the ingestion.
+   * The status of the google user id data ingestion to the destination
+   * containing stats related to the ingestion.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus} */ - public static final class IngestCompositeDataStatus extends com.google.protobuf.GeneratedMessage + public static final class IngestGoogleUserIdDataStatus + extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) - IngestCompositeDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus) + IngestGoogleUserIdDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -14145,33 +19056,30 @@ public static final class IngestCompositeDataStatus extends com.google.protobuf. /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "IngestCompositeDataStatus"); + "IngestGoogleUserIdDataStatus"); } - // Use IngestCompositeDataStatus.newBuilder() to construct. - private IngestCompositeDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use IngestGoogleUserIdDataStatus.newBuilder() to construct. + private IngestGoogleUserIdDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private IngestCompositeDataStatus() { - dataTypeCounts_ = java.util.Collections.emptyList(); - uploadMatchRateRange_ = 0; - } + private IngestGoogleUserIdDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus .Builder.class); } @@ -14196,148 +19104,25 @@ public long getRecordCount() { return recordCount_; } - public static final int DATA_TYPE_COUNTS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List - dataTypeCounts_; - - /** - * - * - *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - @java.lang.Override - public java.util.List - getDataTypeCountsList() { - return dataTypeCounts_; - } - - /** - * - * - *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - getDataTypeCountsOrBuilderList() { - return dataTypeCounts_; - } - - /** - * - * - *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - @java.lang.Override - public int getDataTypeCountsCount() { - return dataTypeCounts_.size(); - } - - /** - * - * - *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - getDataTypeCounts(int index) { - return dataTypeCounts_.get(index); - } - - /** - * - * - *
-     * The total count of data types sent in the upload request for the
-     * destination, broken down by data type. Includes all data types in
-     * the request, regardless of whether they were successfully ingested or
-     * not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder - getDataTypeCountsOrBuilder(int index) { - return dataTypeCounts_.get(index); - } - - public static final int UPLOAD_MATCH_RATE_RANGE_FIELD_NUMBER = 3; - private int uploadMatchRateRange_ = 0; - - /** - * - * - *
-     * The match rate range of the upload.
-     * 
- * - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; - * - * @return The enum numeric value on the wire for uploadMatchRateRange. - */ - @java.lang.Override - public int getUploadMatchRateRangeValue() { - return uploadMatchRateRange_; - } + public static final int GOOGLE_USER_ID_COUNT_FIELD_NUMBER = 2; + private long googleUserIdCount_ = 0L; /** * * *
-     * The match rate range of the upload.
+     * The total count of google user ids sent in the upload request for the
+     * destination. Includes all google user ids in the request, regardless of
+     * whether they were successfully ingested or not.
      * 
* - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * int64 google_user_id_count = 2; * - * @return The uploadMatchRateRange. + * @return The googleUserIdCount. */ @java.lang.Override - public com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange() { - com.google.ads.datamanager.v1.MatchRateRange result = - com.google.ads.datamanager.v1.MatchRateRange.forNumber(uploadMatchRateRange_); - return result == null ? com.google.ads.datamanager.v1.MatchRateRange.UNRECOGNIZED : result; + public long getGoogleUserIdCount() { + return googleUserIdCount_; } private byte memoizedIsInitialized = -1; @@ -14357,12 +19142,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (recordCount_ != 0L) { output.writeInt64(1, recordCount_); } - for (int i = 0; i < dataTypeCounts_.size(); i++) { - output.writeMessage(2, dataTypeCounts_.get(i)); - } - if (uploadMatchRateRange_ - != com.google.ads.datamanager.v1.MatchRateRange.MATCH_RATE_RANGE_UNKNOWN.getNumber()) { - output.writeEnum(3, uploadMatchRateRange_); + if (googleUserIdCount_ != 0L) { + output.writeInt64(2, googleUserIdCount_); } getUnknownFields().writeTo(output); } @@ -14376,1045 +19157,1139 @@ public int getSerializedSize() { if (recordCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } - for (int i = 0; i < dataTypeCounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataTypeCounts_.get(i)); + if (googleUserIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, googleUserIdCount_); } - if (uploadMatchRateRange_ - != com.google.ads.datamanager.v1.MatchRateRange.MATCH_RATE_RANGE_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, uploadMatchRateRange_); + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus) + obj; + + if (getRecordCount() != other.getRecordCount()) return false; + if (getGoogleUserIdCount() != other.getGoogleUserIdCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); + hash = (37 * hash) + GOOGLE_USER_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGoogleUserIdCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The status of the google user id data ingestion to the destination
+     * containing stats related to the ingestion.
+     * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.Builder.class); + } + + // Construct using + // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordCount_ = 0L; + googleUserIdCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + buildPartial() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordCount_ = recordCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.googleUserIdCount_ = googleUserIdCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus) { + return mergeFrom( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + other) { + if (other + == com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus.getDefaultInstance()) return this; + if (other.getRecordCount() != 0L) { + setRecordCount(other.getRecordCount()); + } + if (other.getGoogleUserIdCount() != 0L) { + setGoogleUserIdCount(other.getGoogleUserIdCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { + @java.lang.Override + public final boolean isInitialized() { return true; } - if (!(obj - instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus)) { - return super.equals(obj); - } - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) obj; - - if (getRecordCount() != other.getRecordCount()) return false; - if (!getDataTypeCountsList().equals(other.getDataTypeCountsList())) return false; - if (uploadMatchRateRange_ != other.uploadMatchRateRange_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - if (getDataTypeCountsCount() > 0) { - hash = (37 * hash) + DATA_TYPE_COUNTS_FIELD_NUMBER; - hash = (53 * hash) + getDataTypeCountsList().hashCode(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + recordCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + googleUserIdCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - hash = (37 * hash) + UPLOAD_MATCH_RATE_RANGE_FIELD_NUMBER; - hash = (53 * hash) + uploadMatchRateRange_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private int bitField0_; - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private long recordCount_; - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + @java.lang.Override + public long getRecordCount() { + return recordCount_; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @param value The recordCount to set. + * @return This builder for chaining. + */ + public Builder setRecordCount(long value) { - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + recordCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearRecordCount() { + bitField0_ = (bitField0_ & ~0x00000001); + recordCount_ = 0L; + onChanged(); + return this; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private long googleUserIdCount_; - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
+       * The total count of google user ids sent in the upload request for the
+       * destination. Includes all google user ids in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 google_user_id_count = 2; + * + * @return The googleUserIdCount. + */ + @java.lang.Override + public long getGoogleUserIdCount() { + return googleUserIdCount_; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+       * The total count of google user ids sent in the upload request for the
+       * destination. Includes all google user ids in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 google_user_id_count = 2; + * + * @param value The googleUserIdCount to set. + * @return This builder for chaining. + */ + public Builder setGoogleUserIdCount(long value) { - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + googleUserIdCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+       * The total count of google user ids sent in the upload request for the
+       * destination. Includes all google user ids in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 google_user_id_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearGoogleUserIdCount() { + bitField0_ = (bitField0_ & ~0x00000002); + googleUserIdCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus) } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus) + private static final com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestGoogleUserIdDataStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestGoogleUserIdDataStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestGoogleUserIdDataStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + + public interface RemoveGoogleUserIdDataStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus) + com.google.protobuf.MessageOrBuilder { /** * * *
-     * The status of the composite data ingestion to the destination containing
-     * stats related to the ingestion.
+     * The total count of audience members sent in the removal request. Includes
+     * all audience members in the request, regardless of whether they were
+     * successfully removed or not.
      * 
* - * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus} + * int64 record_count = 1; + * + * @return The recordCount. */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_descriptor; - } + long getRecordCount(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - .Builder.class); - } + /** + * + * + *
+     * The total count of google user ids sent in the removal request. Includes
+     * all google user ids in the request, regardless of whether they were
+     * successfully removed or not.
+     * 
+ * + * int64 google_user_id_count = 2; + * + * @return The googleUserIdCount. + */ + long getGoogleUserIdCount(); + } - // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus.newBuilder() - private Builder() {} + /** + * + * + *
+   * The status of the google user id data removal from the destination.
+   * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus} + */ + public static final class RemoveGoogleUserIdDataStatus + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus) + RemoveGoogleUserIdDataStatusOrBuilder { + private static final long serialVersionUID = 0L; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RemoveGoogleUserIdDataStatus"); + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - recordCount_ = 0L; - if (dataTypeCountsBuilder_ == null) { - dataTypeCounts_ = java.util.Collections.emptyList(); - } else { - dataTypeCounts_ = null; - dataTypeCountsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - uploadMatchRateRange_ = 0; - return this; - } + // Use RemoveGoogleUserIdDataStatus.newBuilder() to construct. + private RemoveGoogleUserIdDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_descriptor; - } + private RemoveGoogleUserIdDataStatus() {} - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - .getDefaultInstance(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_descriptor; + } - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + .class, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + .Builder.class); + } - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus( - this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static final int RECORD_COUNT_FIELD_NUMBER = 1; + private long recordCount_ = 0L; - private void buildPartialRepeatedFields( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - result) { - if (dataTypeCountsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dataTypeCounts_ = java.util.Collections.unmodifiableList(dataTypeCounts_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dataTypeCounts_ = dataTypeCounts_; - } else { - result.dataTypeCounts_ = dataTypeCountsBuilder_.build(); - } - } + /** + * + * + *
+     * The total count of audience members sent in the removal request. Includes
+     * all audience members in the request, regardless of whether they were
+     * successfully removed or not.
+     * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + @java.lang.Override + public long getRecordCount() { + return recordCount_; + } - private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.recordCount_ = recordCount_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.uploadMatchRateRange_ = uploadMatchRateRange_; - } - } + public static final int GOOGLE_USER_ID_COUNT_FIELD_NUMBER = 2; + private long googleUserIdCount_ = 0L; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) { - return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) - other); - } else { - super.mergeFrom(other); - return this; - } + /** + * + * + *
+     * The total count of google user ids sent in the removal request. Includes
+     * all google user ids in the request, regardless of whether they were
+     * successfully removed or not.
+     * 
+ * + * int64 google_user_id_count = 2; + * + * @return The googleUserIdCount. + */ + @java.lang.Override + public long getGoogleUserIdCount() { + return googleUserIdCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (recordCount_ != 0L) { + output.writeInt64(1, recordCount_); } + if (googleUserIdCount_ != 0L) { + output.writeInt64(2, googleUserIdCount_); + } + getUnknownFields().writeTo(output); + } - public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - other) { - if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - .getDefaultInstance()) return this; - if (other.getRecordCount() != 0L) { - setRecordCount(other.getRecordCount()); - } - if (dataTypeCountsBuilder_ == null) { - if (!other.dataTypeCounts_.isEmpty()) { - if (dataTypeCounts_.isEmpty()) { - dataTypeCounts_ = other.dataTypeCounts_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.addAll(other.dataTypeCounts_); - } - onChanged(); - } - } else { - if (!other.dataTypeCounts_.isEmpty()) { - if (dataTypeCountsBuilder_.isEmpty()) { - dataTypeCountsBuilder_.dispose(); - dataTypeCountsBuilder_ = null; - dataTypeCounts_ = other.dataTypeCounts_; - bitField0_ = (bitField0_ & ~0x00000002); - dataTypeCountsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetDataTypeCountsFieldBuilder() - : null; - } else { - dataTypeCountsBuilder_.addAllMessages(other.dataTypeCounts_); - } - } - } - if (other.uploadMatchRateRange_ != 0) { - setUploadMatchRateRangeValue(other.getUploadMatchRateRangeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (recordCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); + } + if (googleUserIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, googleUserIdCount_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public final boolean isInitialized() { + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { return true; } + if (!(obj + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus) + obj; - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - recordCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount m = - input.readMessage( - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - .parser(), - extensionRegistry); - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(m); - } else { - dataTypeCountsBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - uploadMatchRateRange_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + if (getRecordCount() != other.getRecordCount()) return false; + if (getGoogleUserIdCount() != other.getGoogleUserIdCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); + hash = (37 * hash) + GOOGLE_USER_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGoogleUserIdCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - private int bitField0_; + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private long recordCount_; + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
-       * The total count of audience members sent in the upload request for the
-       * destination. Includes all audience members in the request, regardless of
-       * whether they were successfully ingested or not.
-       * 
- * - * int64 record_count = 1; - * - * @return The recordCount. - */ - @java.lang.Override - public long getRecordCount() { - return recordCount_; - } + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-       * The total count of audience members sent in the upload request for the
-       * destination. Includes all audience members in the request, regardless of
-       * whether they were successfully ingested or not.
-       * 
- * - * int64 record_count = 1; - * - * @param value The recordCount to set. - * @return This builder for chaining. - */ - public Builder setRecordCount(long value) { + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - recordCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-       * The total count of audience members sent in the upload request for the
-       * destination. Includes all audience members in the request, regardless of
-       * whether they were successfully ingested or not.
-       * 
- * - * int64 record_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearRecordCount() { - bitField0_ = (bitField0_ & ~0x00000001); - recordCount_ = 0L; - onChanged(); - return this; - } + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private java.util.List< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount> - dataTypeCounts_ = java.util.Collections.emptyList(); + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - private void ensureDataTypeCountsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dataTypeCounts_ = - new java.util.ArrayList< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount>( - dataTypeCounts_); - bitField0_ |= 0x00000002; - } - } + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - dataTypeCountsBuilder_; + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public java.util.List - getDataTypeCountsList() { - if (dataTypeCountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dataTypeCounts_); - } else { - return dataTypeCountsBuilder_.getMessageList(); - } - } + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public int getDataTypeCountsCount() { - if (dataTypeCountsBuilder_ == null) { - return dataTypeCounts_.size(); - } else { - return dataTypeCountsBuilder_.getCount(); - } - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - getDataTypeCounts(int index) { - if (dataTypeCountsBuilder_ == null) { - return dataTypeCounts_.get(index); - } else { - return dataTypeCountsBuilder_.getMessage(index); - } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder setDataTypeCounts( - int index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { - if (dataTypeCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.set(index, value); - onChanged(); - } else { - dataTypeCountsBuilder_.setMessage(index, value); - } - return this; - } + public static Builder newBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder setDataTypeCounts( - int index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - builderForValue) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.set(index, builderForValue.build()); - onChanged(); - } else { - dataTypeCountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The status of the google user id data removal from the destination.
+     * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_descriptor; } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addDataTypeCounts( - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { - if (dataTypeCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(value); - onChanged(); - } else { - dataTypeCountsBuilder_.addMessage(value); - } - return this; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.Builder.class); } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addDataTypeCounts( - int index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { - if (dataTypeCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(index, value); - onChanged(); - } else { - dataTypeCountsBuilder_.addMessage(index, value); - } + // Construct using + // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordCount_ = 0L; + googleUserIdCount_ = 0L; return this; } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addDataTypeCounts( - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - builderForValue) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(builderForValue.build()); - onChanged(); - } else { - dataTypeCountsBuilder_.addMessage(builderForValue.build()); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - return this; + return result; } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addDataTypeCounts( - int index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - builderForValue) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(index, builderForValue.build()); - onChanged(); - } else { - dataTypeCountsBuilder_.addMessage(index, builderForValue.build()); + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + buildPartial() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); } - return this; + onBuilt(); + return result; } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addAllDataTypeCounts( - java.lang.Iterable< - ? extends com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount> - values) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTypeCounts_); - onChanged(); - } else { - dataTypeCountsBuilder_.addAllMessages(values); + private void buildPartial0( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordCount_ = recordCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.googleUserIdCount_ = googleUserIdCount_; } - return this; } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder clearDataTypeCounts() { - if (dataTypeCountsBuilder_ == null) { - dataTypeCounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus) { + return mergeFrom( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus) + other); } else { - dataTypeCountsBuilder_.clear(); + super.mergeFrom(other); + return this; } - return this; } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder removeDataTypeCounts(int index) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.remove(index); - onChanged(); - } else { - dataTypeCountsBuilder_.remove(index); + public Builder mergeFrom( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + other) { + if (other + == com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus.getDefaultInstance()) return this; + if (other.getRecordCount() != 0L) { + setRecordCount(other.getRecordCount()); + } + if (other.getGoogleUserIdCount() != 0L) { + setGoogleUserIdCount(other.getGoogleUserIdCount()); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - getDataTypeCountsBuilder(int index) { - return internalGetDataTypeCountsFieldBuilder().getBuilder(index); + @java.lang.Override + public final boolean isInitialized() { + return true; } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder - getDataTypeCountsOrBuilder(int index) { - if (dataTypeCountsBuilder_ == null) { - return dataTypeCounts_.get(index); - } else { - return dataTypeCountsBuilder_.getMessageOrBuilder(index); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + recordCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + googleUserIdCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public java.util.List< - ? extends - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - getDataTypeCountsOrBuilderList() { - if (dataTypeCountsBuilder_ != null) { - return dataTypeCountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dataTypeCounts_); - } - } + private int bitField0_; - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - addDataTypeCountsBuilder() { - return internalGetDataTypeCountsFieldBuilder() - .addBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - .getDefaultInstance()); - } + private long recordCount_; /** * * *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - addDataTypeCountsBuilder(int index) { - return internalGetDataTypeCountsFieldBuilder() - .addBuilder( - index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - .getDefaultInstance()); - } - - /** - * - * - *
-       * The total count of data types sent in the upload request for the
-       * destination, broken down by data type. Includes all data types in
-       * the request, regardless of whether they were successfully ingested or
-       * not.
-       * 
+ * int64 record_count = 1; * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * @return The recordCount. */ - public java.util.List< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder> - getDataTypeCountsBuilderList() { - return internalGetDataTypeCountsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - internalGetDataTypeCountsFieldBuilder() { - if (dataTypeCountsBuilder_ == null) { - dataTypeCountsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder>( - dataTypeCounts_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - dataTypeCounts_ = null; - } - return dataTypeCountsBuilder_; + @java.lang.Override + public long getRecordCount() { + return recordCount_; } - private int uploadMatchRateRange_ = 0; - /** * * *
-       * The match rate range of the upload.
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * int64 record_count = 1; * - * @return The enum numeric value on the wire for uploadMatchRateRange. + * @param value The recordCount to set. + * @return This builder for chaining. */ - @java.lang.Override - public int getUploadMatchRateRangeValue() { - return uploadMatchRateRange_; + public Builder setRecordCount(long value) { + + recordCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** * * *
-       * The match rate range of the upload.
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * int64 record_count = 1; * - * @param value The enum numeric value on the wire for uploadMatchRateRange to set. * @return This builder for chaining. */ - public Builder setUploadMatchRateRangeValue(int value) { - uploadMatchRateRange_ = value; - bitField0_ |= 0x00000004; + public Builder clearRecordCount() { + bitField0_ = (bitField0_ & ~0x00000001); + recordCount_ = 0L; onChanged(); return this; } + private long googleUserIdCount_; + /** * * *
-       * The match rate range of the upload.
+       * The total count of google user ids sent in the removal request. Includes
+       * all google user ids in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * int64 google_user_id_count = 2; * - * @return The uploadMatchRateRange. + * @return The googleUserIdCount. */ @java.lang.Override - public com.google.ads.datamanager.v1.MatchRateRange getUploadMatchRateRange() { - com.google.ads.datamanager.v1.MatchRateRange result = - com.google.ads.datamanager.v1.MatchRateRange.forNumber(uploadMatchRateRange_); - return result == null ? com.google.ads.datamanager.v1.MatchRateRange.UNRECOGNIZED : result; + public long getGoogleUserIdCount() { + return googleUserIdCount_; } /** * * *
-       * The match rate range of the upload.
+       * The total count of google user ids sent in the removal request. Includes
+       * all google user ids in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * int64 google_user_id_count = 2; * - * @param value The uploadMatchRateRange to set. + * @param value The googleUserIdCount to set. * @return This builder for chaining. */ - public Builder setUploadMatchRateRange(com.google.ads.datamanager.v1.MatchRateRange value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - uploadMatchRateRange_ = value.getNumber(); + public Builder setGoogleUserIdCount(long value) { + + googleUserIdCount_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -15423,43 +20298,46 @@ public Builder setUploadMatchRateRange(com.google.ads.datamanager.v1.MatchRateRa * * *
-       * The match rate range of the upload.
+       * The total count of google user ids sent in the removal request. Includes
+       * all google user ids in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* - * .google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3; + * int64 google_user_id_count = 2; * * @return This builder for chaining. */ - public Builder clearUploadMatchRateRange() { - bitField0_ = (bitField0_ & ~0x00000004); - uploadMatchRateRange_ = 0; + public Builder clearGoogleUserIdCount() { + bitField0_ = (bitField0_ & ~0x00000002); + googleUserIdCount_ = 0L; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus + .RemoveGoogleUserIdDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveGoogleUserIdDataStatus(); } public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .IngestCompositeDataStatus + .RemoveGoogleUserIdDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public IngestCompositeDataStatus parsePartialFrom( + public RemoveGoogleUserIdDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -15479,138 +20357,74 @@ public IngestCompositeDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; - } - - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestCompositeDataStatus - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface RemoveCompositeDataStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The total count of audience members sent in the removal request. Includes
-     * all audience members in the request, regardless of whether they were
-     * successfully removed or not.
-     * 
- * - * int64 record_count = 1; - * - * @return The recordCount. - */ - long getRecordCount(); - - /** - * - * - *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - java.util.List - getDataTypeCountsList(); - - /** - * - * - *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount getDataTypeCounts( - int index); - - /** - * - * - *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - int getDataTypeCountsCount(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveGoogleUserIdDataStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IngestPartnerProvidedIdDataStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus) + com.google.protobuf.MessageOrBuilder { /** * * *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
+     * The total count of audience members sent in the upload request for the
+     * destination. Includes all audience members in the request, regardless of
+     * whether they were successfully ingested or not.
      * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * int64 record_count = 1; + * + * @return The recordCount. */ - java.util.List< - ? extends - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - getDataTypeCountsOrBuilderList(); + long getRecordCount(); /** * * *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
+     * The total count of partner provided ids sent in the upload request for
+     * the destination. Includes all partner provided ids in the request,
+     * regardless of whether they were successfully ingested or not.
      * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * int64 partner_provided_id_count = 2; + * + * @return The partnerProvidedIdCount. */ - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder - getDataTypeCountsOrBuilder(int index); + long getPartnerProvidedIdCount(); } /** * * *
-   * The status of the composite data removal from the destination.
+   * The status of the partner provided id data ingestion to the destination
+   * containing stats related to the ingestion.
    * 
* * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus} + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus} */ - public static final class RemoveCompositeDataStatus extends com.google.protobuf.GeneratedMessage + public static final class IngestPartnerProvidedIdDataStatus + extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) - RemoveCompositeDataStatusOrBuilder { + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus) + IngestPartnerProvidedIdDataStatusOrBuilder { private static final long serialVersionUID = 0L; static { @@ -15620,33 +20434,32 @@ public static final class RemoveCompositeDataStatus extends com.google.protobuf. /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "RemoveCompositeDataStatus"); + "IngestPartnerProvidedIdDataStatus"); } - // Use RemoveCompositeDataStatus.newBuilder() to construct. - private RemoveCompositeDataStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use IngestPartnerProvidedIdDataStatus.newBuilder() to construct. + private IngestPartnerProvidedIdDataStatus( + com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private RemoveCompositeDataStatus() { - dataTypeCounts_ = java.util.Collections.emptyList(); - } + private IngestPartnerProvidedIdDataStatus() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_descriptor; + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_fieldAccessorTable + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .Builder.class); + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.Builder.class); } public static final int RECORD_COUNT_FIELD_NUMBER = 1; @@ -15656,9 +20469,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * The total count of audience members sent in the removal request. Includes
-     * all audience members in the request, regardless of whether they were
-     * successfully removed or not.
+     * The total count of audience members sent in the upload request for the
+     * destination. Includes all audience members in the request, regardless of
+     * whether they were successfully ingested or not.
      * 
* * int64 record_count = 1; @@ -15670,1090 +20483,1258 @@ public long getRecordCount() { return recordCount_; } - public static final int DATA_TYPE_COUNTS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List - dataTypeCounts_; + public static final int PARTNER_PROVIDED_ID_COUNT_FIELD_NUMBER = 2; + private long partnerProvidedIdCount_ = 0L; /** * * *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
+     * The total count of partner provided ids sent in the upload request for
+     * the destination. Includes all partner provided ids in the request,
+     * regardless of whether they were successfully ingested or not.
      * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * int64 partner_provided_id_count = 2; + * + * @return The partnerProvidedIdCount. */ @java.lang.Override - public java.util.List - getDataTypeCountsList() { - return dataTypeCounts_; + public long getPartnerProvidedIdCount() { + return partnerProvidedIdCount_; } - /** - * - * - *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ + private byte memoizedIsInitialized = -1; + @java.lang.Override - public java.util.List< - ? extends - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - getDataTypeCountsOrBuilderList() { - return dataTypeCounts_; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (recordCount_ != 0L) { + output.writeInt64(1, recordCount_); + } + if (partnerProvidedIdCount_ != 0L) { + output.writeInt64(2, partnerProvidedIdCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (recordCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); + } + if (partnerProvidedIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partnerProvidedIdCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus + other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + obj; + + if (getRecordCount() != other.getRecordCount()) return false; + if (getPartnerProvidedIdCount() != other.getPartnerProvidedIdCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); + hash = (37 * hash) + PARTNER_PROVIDED_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartnerProvidedIdCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - /** - * - * - *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ @java.lang.Override - public int getDataTypeCountsCount() { - return dataTypeCounts_.size(); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - /** - * - * - *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
-     * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - getDataTypeCounts(int index) { - return dataTypeCounts_.get(index); + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
-     * The total count of data types sent in the removal request, broken down
-     * by data type. Includes all data types in the request, regardless
-     * of whether they were successfully removed or not.
+     * The status of the partner provided id data ingestion to the destination
+     * containing stats related to the ingestion.
      * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus} */ - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder - getDataTypeCountsOrBuilder(int index) { - return dataTypeCounts_.get(index); - } + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_descriptor; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.Builder.class); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Construct using + // com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordCount_ = 0L; + partnerProvidedIdCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + buildPartial() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus + result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordCount_ = recordCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.partnerProvidedIdCount_ = partnerProvidedIdCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) { + return mergeFrom( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + other) { + if (other + == com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus.getDefaultInstance()) return this; + if (other.getRecordCount() != 0L) { + setRecordCount(other.getRecordCount()); + } + if (other.getPartnerProvidedIdCount() != 0L) { + setPartnerProvidedIdCount(other.getPartnerProvidedIdCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + recordCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + partnerProvidedIdCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long recordCount_; + + /** + * + * + *
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + @java.lang.Override + public long getRecordCount() { + return recordCount_; + } + + /** + * + * + *
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @param value The recordCount to set. + * @return This builder for chaining. + */ + public Builder setRecordCount(long value) { + + recordCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The total count of audience members sent in the upload request for the
+       * destination. Includes all audience members in the request, regardless of
+       * whether they were successfully ingested or not.
+       * 
+ * + * int64 record_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearRecordCount() { + bitField0_ = (bitField0_ & ~0x00000001); + recordCount_ = 0L; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + private long partnerProvidedIdCount_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (recordCount_ != 0L) { - output.writeInt64(1, recordCount_); - } - for (int i = 0; i < dataTypeCounts_.size(); i++) { - output.writeMessage(2, dataTypeCounts_.get(i)); + /** + * + * + *
+       * The total count of partner provided ids sent in the upload request for
+       * the destination. Includes all partner provided ids in the request,
+       * regardless of whether they were successfully ingested or not.
+       * 
+ * + * int64 partner_provided_id_count = 2; + * + * @return The partnerProvidedIdCount. + */ + @java.lang.Override + public long getPartnerProvidedIdCount() { + return partnerProvidedIdCount_; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
+       * The total count of partner provided ids sent in the upload request for
+       * the destination. Includes all partner provided ids in the request,
+       * regardless of whether they were successfully ingested or not.
+       * 
+ * + * int64 partner_provided_id_count = 2; + * + * @param value The partnerProvidedIdCount to set. + * @return This builder for chaining. + */ + public Builder setPartnerProvidedIdCount(long value) { - size = 0; - if (recordCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); - } - for (int i = 0; i < dataTypeCounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataTypeCounts_.get(i)); + partnerProvidedIdCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus)) { - return super.equals(obj); + /** + * + * + *
+       * The total count of partner provided ids sent in the upload request for
+       * the destination. Includes all partner provided ids in the request,
+       * regardless of whether they were successfully ingested or not.
+       * 
+ * + * int64 partner_provided_id_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearPartnerProvidedIdCount() { + bitField0_ = (bitField0_ & ~0x00000002); + partnerProvidedIdCount_ = 0L; + onChanged(); + return this; } - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus other = - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) obj; - if (getRecordCount() != other.getRecordCount()) return false; - if (!getDataTypeCountsList().equals(other.getDataTypeCountsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus) } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); - if (getDataTypeCountsCount() > 0) { - hash = (37 * hash) + DATA_TYPE_COUNTS_FIELD_NUMBER; - hash = (53 * hash) + getDataTypeCountsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.IngestPartnerProvidedIdDataStatus) + private static final com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + DEFAULT_INSTANCE; - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + static { + DEFAULT_INSTANCE = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus(); } public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + .IngestPartnerProvidedIdDataStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestPartnerProvidedIdDataStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public static com.google.protobuf.Parser parser() { + return PARSER; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .IngestPartnerProvidedIdDataStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public interface RemovePartnerProvidedIdDataStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus) + com.google.protobuf.MessageOrBuilder { - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+     * The total count of audience members sent in the removal request. Includes
+     * all audience members in the request, regardless of whether they were
+     * successfully removed or not.
+     * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ + long getRecordCount(); - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
+     * The total count of partner provided ids sent in the removal request.
+     * Includes all partner provided ids in the request, regardless of whether
+     * they were successfully removed or not.
+     * 
+ * + * int64 partner_provided_id_count = 2; + * + * @return The partnerProvidedIdCount. + */ + long getPartnerProvidedIdCount(); + } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
+   * The status of the partner provided id data removal from the destination.
+   * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus} + */ + public static final class RemovePartnerProvidedIdDataStatus + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus) + RemovePartnerProvidedIdDataStatusOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RemovePartnerProvidedIdDataStatus"); } - public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + // Use RemovePartnerProvidedIdDataStatus.newBuilder() to construct. + private RemovePartnerProvidedIdDataStatus( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private RemovePartnerProvidedIdDataStatus() {} - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_descriptor; } - public static Builder newBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.Builder.class); } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static final int RECORD_COUNT_FIELD_NUMBER = 1; + private long recordCount_ = 0L; + /** + * + * + *
+     * The total count of audience members sent in the removal request. Includes
+     * all audience members in the request, regardless of whether they were
+     * successfully removed or not.
+     * 
+ * + * int64 record_count = 1; + * + * @return The recordCount. + */ @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public long getRecordCount() { + return recordCount_; } + public static final int PARTNER_PROVIDED_ID_COUNT_FIELD_NUMBER = 2; + private long partnerProvidedIdCount_ = 0L; + /** * * *
-     * The status of the composite data removal from the destination.
+     * The total count of partner provided ids sent in the removal request.
+     * Includes all partner provided ids in the request, regardless of whether
+     * they were successfully removed or not.
      * 
* - * Protobuf type {@code - * google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus} + * int64 partner_provided_id_count = 2; + * + * @return The partnerProvidedIdCount. */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) - com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .class, - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .Builder.class); - } - - // Construct using - // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - recordCount_ = 0L; - if (dataTypeCountsBuilder_ == null) { - dataTypeCounts_ = java.util.Collections.emptyList(); - } else { - dataTypeCounts_ = null; - dataTypeCountsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto - .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_descriptor; - } - - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - getDefaultInstanceForType() { - return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - build() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - buildPartial() { - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus result = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus( - this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - result) { - if (dataTypeCountsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dataTypeCounts_ = java.util.Collections.unmodifiableList(dataTypeCounts_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dataTypeCounts_ = dataTypeCounts_; - } else { - result.dataTypeCounts_ = dataTypeCountsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.recordCount_ = recordCount_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) { - return mergeFrom( - (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - other) { - if (other - == com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus - .getDefaultInstance()) return this; - if (other.getRecordCount() != 0L) { - setRecordCount(other.getRecordCount()); - } - if (dataTypeCountsBuilder_ == null) { - if (!other.dataTypeCounts_.isEmpty()) { - if (dataTypeCounts_.isEmpty()) { - dataTypeCounts_ = other.dataTypeCounts_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.addAll(other.dataTypeCounts_); - } - onChanged(); - } - } else { - if (!other.dataTypeCounts_.isEmpty()) { - if (dataTypeCountsBuilder_.isEmpty()) { - dataTypeCountsBuilder_.dispose(); - dataTypeCountsBuilder_ = null; - dataTypeCounts_ = other.dataTypeCounts_; - bitField0_ = (bitField0_ & ~0x00000002); - dataTypeCountsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetDataTypeCountsFieldBuilder() - : null; - } else { - dataTypeCountsBuilder_.addAllMessages(other.dataTypeCounts_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public long getPartnerProvidedIdCount() { + return partnerProvidedIdCount_; + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - recordCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount m = - input.readMessage( - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - .parser(), - extensionRegistry); - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(m); - } else { - dataTypeCountsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } + private byte memoizedIsInitialized = -1; - private int bitField0_; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private long recordCount_; + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
-       * The total count of audience members sent in the removal request. Includes
-       * all audience members in the request, regardless of whether they were
-       * successfully removed or not.
-       * 
- * - * int64 record_count = 1; - * - * @return The recordCount. - */ - @java.lang.Override - public long getRecordCount() { - return recordCount_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (recordCount_ != 0L) { + output.writeInt64(1, recordCount_); + } + if (partnerProvidedIdCount_ != 0L) { + output.writeInt64(2, partnerProvidedIdCount_); } + getUnknownFields().writeTo(output); + } - /** - * - * - *
-       * The total count of audience members sent in the removal request. Includes
-       * all audience members in the request, regardless of whether they were
-       * successfully removed or not.
-       * 
- * - * int64 record_count = 1; - * - * @param value The recordCount to set. - * @return This builder for chaining. - */ - public Builder setRecordCount(long value) { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - recordCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + size = 0; + if (recordCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, recordCount_); } + if (partnerProvidedIdCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, partnerProvidedIdCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
-       * The total count of audience members sent in the removal request. Includes
-       * all audience members in the request, regardless of whether they were
-       * successfully removed or not.
-       * 
- * - * int64 record_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearRecordCount() { - bitField0_ = (bitField0_ & ~0x00000001); - recordCount_ = 0L; - onChanged(); - return this; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus)) { + return super.equals(obj); } + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus + other = + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + obj; - private java.util.List< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount> - dataTypeCounts_ = java.util.Collections.emptyList(); + if (getRecordCount() != other.getRecordCount()) return false; + if (getPartnerProvidedIdCount() != other.getPartnerProvidedIdCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private void ensureDataTypeCountsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dataTypeCounts_ = - new java.util.ArrayList< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount>( - dataTypeCounts_); - bitField0_ |= 0x00000002; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount()); + hash = (37 * hash) + PARTNER_PROVIDED_ID_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartnerProvidedIdCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - dataTypeCountsBuilder_; + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public java.util.List - getDataTypeCountsList() { - if (dataTypeCountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dataTypeCounts_); - } else { - return dataTypeCountsBuilder_.getMessageList(); - } + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The status of the partner provided id data removal from the destination.
+     * 
+ * + * Protobuf type {@code + * google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus) + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.class, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.Builder.class); } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public int getDataTypeCountsCount() { - if (dataTypeCountsBuilder_ == null) { - return dataTypeCounts_.size(); - } else { - return dataTypeCountsBuilder_.getCount(); - } - } + // Construct using + // com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus.newBuilder() + private Builder() {} - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - getDataTypeCounts(int index) { - if (dataTypeCountsBuilder_ == null) { - return dataTypeCounts_.get(index); - } else { - return dataTypeCountsBuilder_.getMessage(index); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder setDataTypeCounts( - int index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { - if (dataTypeCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.set(index, value); - onChanged(); - } else { - dataTypeCountsBuilder_.setMessage(index, value); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + recordCount_ = 0L; + partnerProvidedIdCount_ = 0L; return this; } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder setDataTypeCounts( - int index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - builderForValue) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.set(index, builderForValue.build()); - onChanged(); - } else { - dataTypeCountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestinationProto + .internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_descriptor; } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addDataTypeCounts( - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { - if (dataTypeCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(value); - onChanged(); - } else { - dataTypeCountsBuilder_.addMessage(value); - } - return this; + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.getDefaultInstance(); } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addDataTypeCounts( - int index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount value) { - if (dataTypeCountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(index, value); - onChanged(); - } else { - dataTypeCountsBuilder_.addMessage(index, value); + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + build() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - return this; + return result; } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addDataTypeCounts( - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - builderForValue) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(builderForValue.build()); - onChanged(); - } else { - dataTypeCountsBuilder_.addMessage(builderForValue.build()); + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + buildPartial() { + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus + result = + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); } - return this; + onBuilt(); + return result; } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addDataTypeCounts( - int index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - builderForValue) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.add(index, builderForValue.build()); - onChanged(); - } else { - dataTypeCountsBuilder_.addMessage(index, builderForValue.build()); + private void buildPartial0( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.recordCount_ = recordCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.partnerProvidedIdCount_ = partnerProvidedIdCount_; } - return this; } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder addAllDataTypeCounts( - java.lang.Iterable< - ? extends com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount> - values) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataTypeCounts_); - onChanged(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) { + return mergeFrom( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus) + other); } else { - dataTypeCountsBuilder_.addAllMessages(values); + super.mergeFrom(other); + return this; } - return this; } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder clearDataTypeCounts() { - if (dataTypeCountsBuilder_ == null) { - dataTypeCounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dataTypeCountsBuilder_.clear(); + public Builder mergeFrom( + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus + other) { + if (other + == com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus.getDefaultInstance()) return this; + if (other.getRecordCount() != 0L) { + setRecordCount(other.getRecordCount()); } + if (other.getPartnerProvidedIdCount() != 0L) { + setPartnerProvidedIdCount(other.getPartnerProvidedIdCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } - /** - * - * - *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
-       * 
- * - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * - */ - public Builder removeDataTypeCounts(int index) { - if (dataTypeCountsBuilder_ == null) { - ensureDataTypeCountsIsMutable(); - dataTypeCounts_.remove(index); - onChanged(); - } else { - dataTypeCountsBuilder_.remove(index); + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + recordCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + partnerProvidedIdCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } + private int bitField0_; + + private long recordCount_; + /** * * *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * int64 record_count = 1; + * + * @return The recordCount. */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - getDataTypeCountsBuilder(int index) { - return internalGetDataTypeCountsFieldBuilder().getBuilder(index); + @java.lang.Override + public long getRecordCount() { + return recordCount_; } /** * * *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * int64 record_count = 1; + * + * @param value The recordCount to set. + * @return This builder for chaining. */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder - getDataTypeCountsOrBuilder(int index) { - if (dataTypeCountsBuilder_ == null) { - return dataTypeCounts_.get(index); - } else { - return dataTypeCountsBuilder_.getMessageOrBuilder(index); - } + public Builder setRecordCount(long value) { + + recordCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** * * *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
+       * The total count of audience members sent in the removal request. Includes
+       * all audience members in the request, regardless of whether they were
+       * successfully removed or not.
        * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * int64 record_count = 1; + * + * @return This builder for chaining. */ - public java.util.List< - ? extends - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - getDataTypeCountsOrBuilderList() { - if (dataTypeCountsBuilder_ != null) { - return dataTypeCountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dataTypeCounts_); - } + public Builder clearRecordCount() { + bitField0_ = (bitField0_ & ~0x00000001); + recordCount_ = 0L; + onChanged(); + return this; } + private long partnerProvidedIdCount_; + /** * * *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
+       * The total count of partner provided ids sent in the removal request.
+       * Includes all partner provided ids in the request, regardless of whether
+       * they were successfully removed or not.
        * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * int64 partner_provided_id_count = 2; + * + * @return The partnerProvidedIdCount. */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - addDataTypeCountsBuilder() { - return internalGetDataTypeCountsFieldBuilder() - .addBuilder( - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - .getDefaultInstance()); + @java.lang.Override + public long getPartnerProvidedIdCount() { + return partnerProvidedIdCount_; } /** * * *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
+       * The total count of partner provided ids sent in the removal request.
+       * Includes all partner provided ids in the request, regardless of whether
+       * they were successfully removed or not.
        * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * int64 partner_provided_id_count = 2; + * + * @param value The partnerProvidedIdCount to set. + * @return This builder for chaining. */ - public com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder - addDataTypeCountsBuilder(int index) { - return internalGetDataTypeCountsFieldBuilder() - .addBuilder( - index, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount - .getDefaultInstance()); + public Builder setPartnerProvidedIdCount(long value) { + + partnerProvidedIdCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
-       * The total count of data types sent in the removal request, broken down
-       * by data type. Includes all data types in the request, regardless
-       * of whether they were successfully removed or not.
+       * The total count of partner provided ids sent in the removal request.
+       * Includes all partner provided ids in the request, regardless of whether
+       * they were successfully removed or not.
        * 
* - * - * repeated .google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount data_type_counts = 2; - * + * int64 partner_provided_id_count = 2; + * + * @return This builder for chaining. */ - public java.util.List< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder> - getDataTypeCountsBuilderList() { - return internalGetDataTypeCountsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder> - internalGetDataTypeCountsFieldBuilder() { - if (dataTypeCountsBuilder_ == null) { - dataTypeCountsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCount.Builder, - com.google.ads.datamanager.v1.RequestStatusPerDestination.DataTypeCountOrBuilder>( - dataTypeCounts_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - dataTypeCounts_ = null; - } - return dataTypeCountsBuilder_; + public Builder clearPartnerProvidedIdCount() { + bitField0_ = (bitField0_ & ~0x00000002); + partnerProvidedIdCount_ = 0L; + onChanged(); + return this; } - // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus) } - // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus) + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.RequestStatusPerDestination.RemovePartnerProvidedIdDataStatus) private static final com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus + .RemovePartnerProvidedIdDataStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus(); + new com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus(); } public static com.google.ads.datamanager.v1.RequestStatusPerDestination - .RemoveCompositeDataStatus + .RemovePartnerProvidedIdDataStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public RemoveCompositeDataStatus parsePartialFrom( + public RemovePartnerProvidedIdDataStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -16773,17 +21754,18 @@ public RemoveCompositeDataStatus parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveCompositeDataStatus + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemovePartnerProvidedIdDataStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -17515,6 +22497,7 @@ public enum StatusCase AUDIENCE_MEMBERS_INGESTION_STATUS(4), EVENTS_INGESTION_STATUS(5), AUDIENCE_MEMBERS_REMOVAL_STATUS(6), + REMOVE_ALL_AUDIENCE_MEMBERS_STATUS(8), STATUS_NOT_SET(0); private final int value; @@ -17540,6 +22523,8 @@ public static StatusCase forNumber(int value) { return EVENTS_INGESTION_STATUS; case 6: return AUDIENCE_MEMBERS_REMOVAL_STATUS; + case 8: + return REMOVE_ALL_AUDIENCE_MEMBERS_STATUS; case 0: return STATUS_NOT_SET; default: @@ -17998,6 +22983,75 @@ public boolean hasAudienceMembersRemovalStatus() { .getDefaultInstance(); } + public static final int REMOVE_ALL_AUDIENCE_MEMBERS_STATUS_FIELD_NUMBER = 8; + + /** + * + * + *
+   * The status of the remove all audience members request.
+   * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + * + * @return Whether the removeAllAudienceMembersStatus field is set. + */ + @java.lang.Override + public boolean hasRemoveAllAudienceMembersStatus() { + return statusCase_ == 8; + } + + /** + * + * + *
+   * The status of the remove all audience members request.
+   * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + * + * @return The removeAllAudienceMembersStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + getRemoveAllAudienceMembersStatus() { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + .getDefaultInstance(); + } + + /** + * + * + *
+   * The status of the remove all audience members request.
+   * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatusOrBuilder + getRemoveAllAudienceMembersStatusOrBuilder() { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -18044,6 +23098,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getWarningInfo()); } + if (statusCase_ == 8) { + output.writeMessage( + 8, + (com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus) + status_); + } getUnknownFields().writeTo(output); } @@ -18091,6 +23151,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getWarningInfo()); } + if (statusCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) + status_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -18133,6 +23201,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAudienceMembersRemovalStatus().equals(other.getAudienceMembersRemovalStatus())) return false; break; + case 8: + if (!getRemoveAllAudienceMembersStatus().equals(other.getRemoveAllAudienceMembersStatus())) + return false; + break; case 0: default: } @@ -18174,6 +23246,10 @@ public int hashCode() { hash = (37 * hash) + AUDIENCE_MEMBERS_REMOVAL_STATUS_FIELD_NUMBER; hash = (53 * hash) + getAudienceMembersRemovalStatus().hashCode(); break; + case 8: + hash = (37 * hash) + REMOVE_ALL_AUDIENCE_MEMBERS_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getRemoveAllAudienceMembersStatus().hashCode(); + break; case 0: default: } @@ -18354,6 +23430,9 @@ public Builder clear() { if (audienceMembersRemovalStatusBuilder_ != null) { audienceMembersRemovalStatusBuilder_.clear(); } + if (removeAllAudienceMembersStatusBuilder_ != null) { + removeAllAudienceMembersStatusBuilder_.clear(); + } statusCase_ = 0; status_ = null; return this; @@ -18427,6 +23506,9 @@ private void buildPartialOneofs( if (statusCase_ == 6 && audienceMembersRemovalStatusBuilder_ != null) { result.status_ = audienceMembersRemovalStatusBuilder_.build(); } + if (statusCase_ == 8 && removeAllAudienceMembersStatusBuilder_ != null) { + result.status_ = removeAllAudienceMembersStatusBuilder_.build(); + } } @java.lang.Override @@ -18470,6 +23552,11 @@ public Builder mergeFrom(com.google.ads.datamanager.v1.RequestStatusPerDestinati mergeAudienceMembersRemovalStatus(other.getAudienceMembersRemovalStatus()); break; } + case REMOVE_ALL_AUDIENCE_MEMBERS_STATUS: + { + mergeRemoveAllAudienceMembersStatus(other.getRemoveAllAudienceMembersStatus()); + break; + } case STATUS_NOT_SET: { break; @@ -18551,6 +23638,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 58 + case 66: + { + input.readMessage( + internalGetRemoveAllAudienceMembersStatusFieldBuilder().getBuilder(), + extensionRegistry); + statusCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -20200,6 +25295,278 @@ public Builder clearAudienceMembersRemovalStatus() { return audienceMembersRemovalStatusBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatusOrBuilder> + removeAllAudienceMembersStatusBuilder_; + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + * + * @return Whether the removeAllAudienceMembersStatus field is set. + */ + @java.lang.Override + public boolean hasRemoveAllAudienceMembersStatus() { + return statusCase_ == 8; + } + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + * + * @return The removeAllAudienceMembersStatus. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + getRemoveAllAudienceMembersStatus() { + if (removeAllAudienceMembersStatusBuilder_ == null) { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.getDefaultInstance(); + } else { + if (statusCase_ == 8) { + return removeAllAudienceMembersStatusBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + */ + public Builder setRemoveAllAudienceMembersStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + value) { + if (removeAllAudienceMembersStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + removeAllAudienceMembersStatusBuilder_.setMessage(value); + } + statusCase_ = 8; + return this; + } + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + */ + public Builder setRemoveAllAudienceMembersStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + .Builder + builderForValue) { + if (removeAllAudienceMembersStatusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + removeAllAudienceMembersStatusBuilder_.setMessage(builderForValue.build()); + } + statusCase_ = 8; + return this; + } + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + */ + public Builder mergeRemoveAllAudienceMembersStatus( + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + value) { + if (removeAllAudienceMembersStatusBuilder_ == null) { + if (statusCase_ == 8 + && status_ + != com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.getDefaultInstance()) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.newBuilder( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) + status_) + .mergeFrom(value) + .buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + if (statusCase_ == 8) { + removeAllAudienceMembersStatusBuilder_.mergeFrom(value); + } else { + removeAllAudienceMembersStatusBuilder_.setMessage(value); + } + } + statusCase_ = 8; + return this; + } + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + */ + public Builder clearRemoveAllAudienceMembersStatus() { + if (removeAllAudienceMembersStatusBuilder_ == null) { + if (statusCase_ == 8) { + statusCase_ = 0; + status_ = null; + onChanged(); + } + } else { + if (statusCase_ == 8) { + statusCase_ = 0; + status_ = null; + } + removeAllAudienceMembersStatusBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + */ + public com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + .Builder + getRemoveAllAudienceMembersStatusBuilder() { + return internalGetRemoveAllAudienceMembersStatusFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatusOrBuilder + getRemoveAllAudienceMembersStatusOrBuilder() { + if ((statusCase_ == 8) && (removeAllAudienceMembersStatusBuilder_ != null)) { + return removeAllAudienceMembersStatusBuilder_.getMessageOrBuilder(); + } else { + if (statusCase_ == 8) { + return (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) + status_; + } + return com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The status of the remove all audience members request.
+     * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + .Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatusOrBuilder> + internalGetRemoveAllAudienceMembersStatusFieldBuilder() { + if (removeAllAudienceMembersStatusBuilder_ == null) { + if (!(statusCase_ == 8)) { + status_ = + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.getDefaultInstance(); + } + removeAllAudienceMembersStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus.Builder, + com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatusOrBuilder>( + (com.google.ads.datamanager.v1.RequestStatusPerDestination + .RemoveAllAudienceMembersStatus) + status_, + getParentForChildren(), + isClean()); + status_ = null; + } + statusCase_ = 8; + onChanged(); + return removeAllAudienceMembersStatusBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.RequestStatusPerDestination) } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationOrBuilder.java index 3d53ca118989..54c18ab1c492 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationOrBuilder.java @@ -342,5 +342,50 @@ public interface RequestStatusPerDestinationOrBuilder com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAudienceMembersStatusOrBuilder getAudienceMembersRemovalStatusOrBuilder(); + /** + * + * + *
+   * The status of the remove all audience members request.
+   * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + * + * @return Whether the removeAllAudienceMembersStatus field is set. + */ + boolean hasRemoveAllAudienceMembersStatus(); + + /** + * + * + *
+   * The status of the remove all audience members request.
+   * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + * + * @return The removeAllAudienceMembersStatus. + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus + getRemoveAllAudienceMembersStatus(); + + /** + * + * + *
+   * The status of the remove all audience members request.
+   * 
+ * + * + * .google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; + * + */ + com.google.ads.datamanager.v1.RequestStatusPerDestination.RemoveAllAudienceMembersStatusOrBuilder + getRemoveAllAudienceMembersStatusOrBuilder(); + com.google.ads.datamanager.v1.RequestStatusPerDestination.StatusCase getStatusCase(); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java index 0a4e90c4e277..54dbaaa1ae4c 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/RequestStatusPerDestinationProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAudienceMembersStatus_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAudienceMembersStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -104,6 +108,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_DataTypeCount_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -122,7 +142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "amanager.v1\032+google/ads/datamanager/v1/d" + "estination.proto\032*google/ads/datamanager" + "/v1/match_rate.proto\0321google/ads/dataman" - + "ager/v1/processing_errors.proto\"\352\034\n\033Requ" + + "ager/v1/processing_errors.proto\"\236%\n\033Requ" + "estStatusPerDestination\022;\n\013destination\030\001" + " \001(\0132&.google.ads.datamanager.v1.Destina" + "tion\022\\\n\016request_status\030\002 \001(\0162D.google.ad" @@ -139,44 +159,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "estEventsStatusH\000\022}\n\037audience_members_re" + "moval_status\030\006 \001(\0132R.google.ads.datamana" + "ger.v1.RequestStatusPerDestination.Remov" - + "eAudienceMembersStatusH\000\032\354\005\n\033IngestAudie" - + "nceMembersStatus\022q\n\032user_data_ingestion_" - + "status\030\001 \001(\0132K.google.ads.datamanager.v1" - + ".RequestStatusPerDestination.IngestUserD" - + "ataStatusH\000\022u\n\034mobile_data_ingestion_sta" - + "tus\030\002 \001(\0132M.google.ads.datamanager.v1.Re" - + "questStatusPerDestination.IngestMobileDa" - + "taStatusH\000\022q\n\032pair_data_ingestion_status" - + "\030\003 \001(\0132K.google.ads.datamanager.v1.Reque" - + "stStatusPerDestination.IngestPairDataSta" - + "tusH\000\022v\n\035user_id_data_ingestion_status\030\004" - + " \001(\0132M.google.ads.datamanager.v1.Request" - + "StatusPerDestination.IngestUserIdDataSta" - + "tusH\000\022q\n\032ppid_data_ingestion_status\030\005 \001(" - + "\0132K.google.ads.datamanager.v1.RequestSta" - + "tusPerDestination.IngestPpidDataStatusH\000" - + "\022{\n\037composite_data_ingestion_status\030\006 \001(" - + "\0132P.google.ads.datamanager.v1.RequestSta" - + "tusPerDestination.IngestCompositeDataSta" - + "tusH\000B\010\n\006status\032\340\005\n\033RemoveAudienceMember" - + "sStatus\022o\n\030user_data_removal_status\030\001 \001(" - + "\0132K.google.ads.datamanager.v1.RequestSta" - + "tusPerDestination.RemoveUserDataStatusH\000" - + "\022s\n\032mobile_data_removal_status\030\002 \001(\0132M.g" - + "oogle.ads.datamanager.v1.RequestStatusPe" - + "rDestination.RemoveMobileDataStatusH\000\022o\n" - + "\030pair_data_removal_status\030\003 \001(\0132K.google" - + ".ads.datamanager.v1.RequestStatusPerDest" - + "ination.RemovePairDataStatusH\000\022t\n\033user_i" - + "d_data_removal_status\030\004 \001(\0132M.google.ads" - + ".datamanager.v1.RequestStatusPerDestinat" - + "ion.RemoveUserIdDataStatusH\000\022o\n\030ppid_dat" - + "a_removal_status\030\005 \001(\0132K.google.ads.data" - + "manager.v1.RequestStatusPerDestination.R" - + "emovePpidDataStatusH\000\022y\n\035composite_data_" - + "removal_status\030\006 \001(\0132P.google.ads.datama" - + "nager.v1.RequestStatusPerDestination.Rem" - + "oveCompositeDataStatusH\000B\010\n\006status\032*\n\022In" + + "eAudienceMembersStatusH\000\022\203\001\n\"remove_all_" + + "audience_members_status\030\010 \001(\0132U.google.a" + + "ds.datamanager.v1.RequestStatusPerDestin" + + "ation.RemoveAllAudienceMembersStatusH\000\032\202" + + "\010\n\033IngestAudienceMembersStatus\022q\n\032user_d" + + "ata_ingestion_status\030\001 \001(\0132K.google.ads." + + "datamanager.v1.RequestStatusPerDestinati" + + "on.IngestUserDataStatusH\000\022u\n\034mobile_data" + + "_ingestion_status\030\002 \001(\0132M.google.ads.dat" + + "amanager.v1.RequestStatusPerDestination." + + "IngestMobileDataStatusH\000\022q\n\032pair_data_in" + + "gestion_status\030\003 \001(\0132K.google.ads.datama" + + "nager.v1.RequestStatusPerDestination.Ing" + + "estPairDataStatusH\000\022v\n\035user_id_data_inge" + + "stion_status\030\004 \001(\0132M.google.ads.datamana" + + "ger.v1.RequestStatusPerDestination.Inges" + + "tUserIdDataStatusH\000\022q\n\032ppid_data_ingesti" + + "on_status\030\005 \001(\0132K.google.ads.datamanager" + + ".v1.RequestStatusPerDestination.IngestPp" + + "idDataStatusH\000\022{\n\037composite_data_ingesti" + + "on_status\030\006 \001(\0132P.google.ads.datamanager" + + ".v1.RequestStatusPerDestination.IngestCo" + + "mpositeDataStatusH\000\022\203\001\n$google_user_id_d" + + "ata_ingestion_status\030\007 \001(\0132S.google.ads." + + "datamanager.v1.RequestStatusPerDestinati" + + "on.IngestGoogleUserIdDataStatusH\000\022\215\001\n)pa" + + "rtner_provided_id_data_ingestion_status\030" + + "\010 \001(\0132X.google.ads.datamanager.v1.Reques" + + "tStatusPerDestination.IngestPartnerProvi" + + "dedIdDataStatusH\000B\010\n\006status\032\362\007\n\033RemoveAu" + + "dienceMembersStatus\022o\n\030user_data_removal" + + "_status\030\001 \001(\0132K.google.ads.datamanager.v" + + "1.RequestStatusPerDestination.RemoveUser" + + "DataStatusH\000\022s\n\032mobile_data_removal_stat" + + "us\030\002 \001(\0132M.google.ads.datamanager.v1.Req" + + "uestStatusPerDestination.RemoveMobileDat" + + "aStatusH\000\022o\n\030pair_data_removal_status\030\003 " + + "\001(\0132K.google.ads.datamanager.v1.RequestS" + + "tatusPerDestination.RemovePairDataStatus" + + "H\000\022t\n\033user_id_data_removal_status\030\004 \001(\0132" + + "M.google.ads.datamanager.v1.RequestStatu" + + "sPerDestination.RemoveUserIdDataStatusH\000" + + "\022o\n\030ppid_data_removal_status\030\005 \001(\0132K.goo" + + "gle.ads.datamanager.v1.RequestStatusPerD" + + "estination.RemovePpidDataStatusH\000\022y\n\035com" + + "posite_data_removal_status\030\006 \001(\0132P.googl" + + "e.ads.datamanager.v1.RequestStatusPerDes" + + "tination.RemoveCompositeDataStatusH\000\022\201\001\n" + + "\"google_user_id_data_removal_status\030\007 \001(" + + "\0132S.google.ads.datamanager.v1.RequestSta" + + "tusPerDestination.RemoveGoogleUserIdData" + + "StatusH\000\022\213\001\n\'partner_provided_id_data_re" + + "moval_status\030\010 \001(\0132X.google.ads.datamana" + + "ger.v1.RequestStatusPerDestination.Remov" + + "ePartnerProvidedIdDataStatusH\000B\010\n\006status" + + "\032 \n\036RemoveAllAudienceMembersStatus\032*\n\022In" + "gestEventsStatus\022\024\n\014record_count\030\001 \001(\003\032\227" + "\001\n\024IngestUserDataStatus\022\024\n\014record_count\030" + "\001 \001(\003\022\035\n\025user_identifier_count\030\002 \001(\003\022J\n\027" @@ -207,20 +245,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s\022\024\n\014record_count\030\001 \001(\003\022^\n\020data_type_cou" + "nts\030\002 \003(\0132D.google.ads.datamanager.v1.Re" + "questStatusPerDestination.DataTypeCount\032" - + "m\n\rDataTypeCount\022M\n\004type\030\001 \001(\0162?.google." - + "ads.datamanager.v1.RequestStatusPerDesti" - + "nation.DataType\022\r\n\005count\030\002 \001(\003\"i\n\rReques" - + "tStatus\022\032\n\026REQUEST_STATUS_UNKNOWN\020\000\022\013\n\007S" - + "UCCESS\020\001\022\016\n\nPROCESSING\020\002\022\n\n\006FAILED\020\003\022\023\n\017" - + "PARTIAL_SUCCESS\020\004\"_\n\010DataType\022\031\n\025DATA_TY" - + "PE_UNSPECIFIED\020\000\022\t\n\005EMAIL\020\001\022\020\n\014PHONE_NUM" - + "BER\020\002\022\013\n\007ADDRESS\020\003\022\016\n\nIP_ADDRESS\020\004B\010\n\006st" - + "atusB\335\001\n\035com.google.ads.datamanager.v1B " - + "RequestStatusPerDestinationProtoP\001ZAclou" - + "d.google.com/go/datamanager/apiv1/datama" - + "nagerpb;datamanagerpb\252\002\031Google.Ads.DataM" - + "anager.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034" - + "Google::Ads::DataManager::V1b\006proto3" + + "R\n\034IngestGoogleUserIdDataStatus\022\024\n\014recor" + + "d_count\030\001 \001(\003\022\034\n\024google_user_id_count\030\002 " + + "\001(\003\032R\n\034RemoveGoogleUserIdDataStatus\022\024\n\014r" + + "ecord_count\030\001 \001(\003\022\034\n\024google_user_id_coun" + + "t\030\002 \001(\003\032\\\n!IngestPartnerProvidedIdDataSt" + + "atus\022\024\n\014record_count\030\001 \001(\003\022!\n\031partner_pr" + + "ovided_id_count\030\002 \001(\003\032\\\n!RemovePartnerPr" + + "ovidedIdDataStatus\022\024\n\014record_count\030\001 \001(\003" + + "\022!\n\031partner_provided_id_count\030\002 \001(\003\032m\n\rD" + + "ataTypeCount\022M\n\004type\030\001 \001(\0162?.google.ads." + + "datamanager.v1.RequestStatusPerDestinati" + + "on.DataType\022\r\n\005count\030\002 \001(\003\"i\n\rRequestSta" + + "tus\022\032\n\026REQUEST_STATUS_UNKNOWN\020\000\022\013\n\007SUCCE" + + "SS\020\001\022\016\n\nPROCESSING\020\002\022\n\n\006FAILED\020\003\022\023\n\017PART" + + "IAL_SUCCESS\020\004\"_\n\010DataType\022\031\n\025DATA_TYPE_U" + + "NSPECIFIED\020\000\022\t\n\005EMAIL\020\001\022\020\n\014PHONE_NUMBER\020" + + "\002\022\013\n\007ADDRESS\020\003\022\016\n\nIP_ADDRESS\020\004B\010\n\006status" + + "B\335\001\n\035com.google.ads.datamanager.v1B Requ" + + "estStatusPerDestinationProtoP\001ZAcloud.go" + + "ogle.com/go/datamanager/apiv1/datamanage" + + "rpb;datamanagerpb\252\002\031Google.Ads.DataManag" + + "er.V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Goog" + + "le::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -243,6 +290,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudienceMembersIngestionStatus", "EventsIngestionStatus", "AudienceMembersRemovalStatus", + "RemoveAllAudienceMembersStatus", "Status", }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestAudienceMembersStatus_descriptor = @@ -258,6 +306,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserIdDataIngestionStatus", "PpidDataIngestionStatus", "CompositeDataIngestionStatus", + "GoogleUserIdDataIngestionStatus", + "PartnerProvidedIdDataIngestionStatus", "Status", }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAudienceMembersStatus_descriptor = @@ -273,11 +323,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserIdDataRemovalStatus", "PpidDataRemovalStatus", "CompositeDataRemovalStatus", + "GoogleUserIdDataRemovalStatus", + "PartnerProvidedIdDataRemovalStatus", "Status", }); - internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor = + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor .getNestedType(2); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveAllAudienceMembersStatus_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor = + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor + .getNestedType(3); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestEventsStatus_descriptor, @@ -286,7 +345,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(3); + .getNestedType(4); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserDataStatus_descriptor, @@ -295,7 +354,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(4); + .getNestedType(5); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserDataStatus_descriptor, @@ -304,7 +363,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(5); + .getNestedType(6); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestMobileDataStatus_descriptor, @@ -313,7 +372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(6); + .getNestedType(7); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveMobileDataStatus_descriptor, @@ -322,7 +381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(7); + .getNestedType(8); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPairDataStatus_descriptor, @@ -331,7 +390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(8); + .getNestedType(9); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePairDataStatus_descriptor, @@ -340,7 +399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(9); + .getNestedType(10); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestUserIdDataStatus_descriptor, @@ -349,7 +408,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(10); + .getNestedType(11); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveUserIdDataStatus_descriptor, @@ -358,7 +417,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(11); + .getNestedType(12); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPpidDataStatus_descriptor, @@ -367,7 +426,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(12); + .getNestedType(13); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePpidDataStatus_descriptor, @@ -376,7 +435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(13); + .getNestedType(14); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestCompositeDataStatus_descriptor, @@ -385,16 +444,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(14); + .getNestedType(15); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveCompositeDataStatus_descriptor, new java.lang.String[] { "RecordCount", "DataTypeCounts", }); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_descriptor = + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor + .getNestedType(16); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestGoogleUserIdDataStatus_descriptor, + new java.lang.String[] { + "RecordCount", "GoogleUserIdCount", + }); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_descriptor = + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor + .getNestedType(17); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemoveGoogleUserIdDataStatus_descriptor, + new java.lang.String[] { + "RecordCount", "GoogleUserIdCount", + }); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_descriptor = + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor + .getNestedType(18); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_IngestPartnerProvidedIdDataStatus_descriptor, + new java.lang.String[] { + "RecordCount", "PartnerProvidedIdCount", + }); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_descriptor = + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor + .getNestedType(19); + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_RemovePartnerProvidedIdDataStatus_descriptor, + new java.lang.String[] { + "RecordCount", "PartnerProvidedIdCount", + }); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_DataTypeCount_descriptor = internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_descriptor - .getNestedType(15); + .getNestedType(20); internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_DataTypeCount_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RequestStatusPerDestination_DataTypeCount_descriptor, diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/SearchPartnerLinksRequest.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/SearchPartnerLinksRequest.java index 80fd3cd259fd..9ef82f909d2e 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/SearchPartnerLinksRequest.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/SearchPartnerLinksRequest.java @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
    * The maximum number of partner links to return. The service may return
    * fewer than this value.
-   * If unspecified, at most 10 partner links will be returned.
+   * If unspecified, at most 50 partner links will be returned.
    * The maximum value is 100; values above 100 will be coerced to 100.
    * 
* @@ -251,6 +251,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * - `owning_account.account_id` * - `partner_account.account_type` * - `partner_account.account_id` + * - `feature_set` + * + * For partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set, the following fields are also supported: + * + * - `partner_customer_account.account_id` * * Example: * `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id @@ -298,6 +305,13 @@ public java.lang.String getFilter() { * - `owning_account.account_id` * - `partner_account.account_type` * - `partner_account.account_id` + * - `feature_set` + * + * For partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set, the following fields are also supported: + * + * - `partner_customer_account.account_id` * * Example: * `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id @@ -853,7 +867,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { *
      * The maximum number of partner links to return. The service may return
      * fewer than this value.
-     * If unspecified, at most 10 partner links will be returned.
+     * If unspecified, at most 50 partner links will be returned.
      * The maximum value is 100; values above 100 will be coerced to 100.
      * 
* @@ -872,7 +886,7 @@ public int getPageSize() { *
      * The maximum number of partner links to return. The service may return
      * fewer than this value.
-     * If unspecified, at most 10 partner links will be returned.
+     * If unspecified, at most 50 partner links will be returned.
      * The maximum value is 100; values above 100 will be coerced to 100.
      * 
* @@ -895,7 +909,7 @@ public Builder setPageSize(int value) { *
      * The maximum number of partner links to return. The service may return
      * fewer than this value.
-     * If unspecified, at most 10 partner links will be returned.
+     * If unspecified, at most 50 partner links will be returned.
      * The maximum value is 100; values above 100 will be coerced to 100.
      * 
* @@ -1067,6 +1081,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * - `owning_account.account_id` * - `partner_account.account_type` * - `partner_account.account_id` + * - `feature_set` + * + * For partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set, the following fields are also supported: + * + * - `partner_customer_account.account_id` * * Example: * `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id @@ -1113,6 +1134,13 @@ public java.lang.String getFilter() { * - `owning_account.account_id` * - `partner_account.account_type` * - `partner_account.account_id` + * - `feature_set` + * + * For partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set, the following fields are also supported: + * + * - `partner_customer_account.account_id` * * Example: * `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id @@ -1159,6 +1187,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * - `owning_account.account_id` * - `partner_account.account_type` * - `partner_account.account_id` + * - `feature_set` + * + * For partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set, the following fields are also supported: + * + * - `partner_customer_account.account_id` * * Example: * `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id @@ -1204,6 +1239,13 @@ public Builder setFilter(java.lang.String value) { * - `owning_account.account_id` * - `partner_account.account_type` * - `partner_account.account_id` + * - `feature_set` + * + * For partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set, the following fields are also supported: + * + * - `partner_customer_account.account_id` * * Example: * `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id @@ -1245,6 +1287,13 @@ public Builder clearFilter() { * - `owning_account.account_id` * - `partner_account.account_type` * - `partner_account.account_id` + * - `feature_set` + * + * For partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set, the following fields are also supported: + * + * - `partner_customer_account.account_id` * * Example: * `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/SearchPartnerLinksRequestOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/SearchPartnerLinksRequestOrBuilder.java index e74a0727c0b1..eeaca10e4555 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/SearchPartnerLinksRequestOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/SearchPartnerLinksRequestOrBuilder.java @@ -70,7 +70,7 @@ public interface SearchPartnerLinksRequestOrBuilder *
    * The maximum number of partner links to return. The service may return
    * fewer than this value.
-   * If unspecified, at most 10 partner links will be returned.
+   * If unspecified, at most 50 partner links will be returned.
    * The maximum value is 100; values above 100 will be coerced to 100.
    * 
* @@ -138,6 +138,13 @@ public interface SearchPartnerLinksRequestOrBuilder * - `owning_account.account_id` * - `partner_account.account_type` * - `partner_account.account_id` + * - `feature_set` + * + * For partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set, the following fields are also supported: + * + * - `partner_customer_account.account_id` * * Example: * `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id @@ -174,6 +181,13 @@ public interface SearchPartnerLinksRequestOrBuilder * - `owning_account.account_id` * - `partner_account.account_type` * - `partner_account.account_id` + * - `feature_set` + * + * For partner links with the + * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + * feature set, the following fields are also supported: + * + * - `partner_customer_account.account_id` * * Example: * `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java index c06c4c984d23..d6c4cae0b100 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/UserDataProto.java @@ -71,16 +71,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "email_address\030\001 \001(\tH\000\022\026\n" + "\014phone_number\030\002 \001(\tH\000\0229\n" + "\007address\030\003 \001(\0132&.google.ads.datamanager.v1.AddressInfoH\000B\014\n\n" - + "identifier\"t\n" + + "identifier\"\304\001\n" + "\013AddressInfo\022\027\n\n" + "given_name\030\001 \001(\tB\003\340A\002\022\030\n" + "\013family_name\030\002 \001(\tB\003\340A\002\022\030\n" + "\013region_code\030\003 \001(\tB\003\340A\002\022\030\n" - + "\013postal_code\030\004 \001(\tB\003\340A\002B\312\001\n" + + "\013postal_code\030\004 \001(\tB\003\340A\002\022\031\n" + + "\014address_line\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004city\030\006 \001(\tB\003\340A\001\022 \n" + + "\023administrative_area\030\007 \001(\tB\003\340A\001B\312\001\n" + "\035com.google.ads.datamanager.v1B\r" - + "UserDataProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;dataman" - + "agerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Goo" - + "gle\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" + + "UserDataProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datama" + + "nagerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Go" + + "ogle\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -110,7 +113,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_AddressInfo_descriptor, new java.lang.String[] { - "GivenName", "FamilyName", "RegionCode", "PostalCode", + "GivenName", + "FamilyName", + "RegionCode", + "PostalCode", + "AddressLine", + "City", + "AdministrativeArea", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/WarningReason.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/WarningReason.java new file mode 100644 index 000000000000..dc9f0bd6bafd --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/WarningReason.java @@ -0,0 +1,515 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/processing_errors.proto +// Protobuf Java Version: 4.33.6 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Reasons for non-blocking warnings returned during ingestion.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.WarningReason} + */ +@com.google.protobuf.Generated +public enum WarningReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified warning reason.
+   * 
+ * + * WARNING_REASON_UNSPECIFIED = 0; + */ + WARNING_REASON_UNSPECIFIED(0), + /** + * + * + *
+   * A custom variable in
+   * [`custom_variables`][google.ads.datamanager.v1.Event.custom_variables] is
+   * not enabled in the account.
+   * 
+ * + * WARNING_REASON_CUSTOM_VARIABLE_NOT_ENABLED = 1; + */ + WARNING_REASON_CUSTOM_VARIABLE_NOT_ENABLED(1), + /** + * + * + *
+   * A custom variable value in
+   * [`custom_variables`][google.ads.datamanager.v1.Event.custom_variables] is
+   * not among the predefined allowed values configured for the custom variable
+   * on the destination account.
+   * 
+ * + * WARNING_REASON_CUSTOM_VARIABLE_NOT_PREDEFINED = 2; + */ + WARNING_REASON_CUSTOM_VARIABLE_NOT_PREDEFINED(2), + /** + * + * + *
+   * The [`cart_data`][google.ads.datamanager.v1.Event.cart_data] is not
+   * supported with [`gbraid`][google.ads.datamanager.v1.AdIdentifiers.gbraid]
+   * or [`wbraid`][google.ads.datamanager.v1.AdIdentifiers.wbraid].
+   * 
+ * + * WARNING_REASON_CART_DATA_NOT_SUPPORTED_WITH_GBRAID_OR_WBRAID = 3; + */ + WARNING_REASON_CART_DATA_NOT_SUPPORTED_WITH_GBRAID_OR_WBRAID(3), + /** + * + * + *
+   * The
+   * [`merchant_product_id`][google.ads.datamanager.v1.Item.merchant_product_id]
+   * is missing in the cart item.
+   * 
+ * + * WARNING_REASON_CART_DATA_ITEM_MERCHANT_PRODUCT_ID_MISSING = 4; + */ + WARNING_REASON_CART_DATA_ITEM_MERCHANT_PRODUCT_ID_MISSING(4), + /** + * + * + *
+   * The [`unit_price`][google.ads.datamanager.v1.Item.unit_price] is missing in
+   * the cart item.
+   * 
+ * + * WARNING_REASON_CART_DATA_ITEM_UNIT_PRICE_MISSING = 5; + */ + WARNING_REASON_CART_DATA_ITEM_UNIT_PRICE_MISSING(5), + /** + * + * + *
+   * Generic warning reason for issues that do not fit into other specific
+   * categories.
+   * 
+ * + * WARNING_REASON_GENERIC = 6; + */ + WARNING_REASON_GENERIC(6), + /** + * + * + *
+   * The [`client_id`][google.ads.datamanager.v1.Event.client_id] is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_CLIENT_ID = 7; + */ + WARNING_REASON_INVALID_CLIENT_ID(7), + /** + * + * + *
+   * The
+   * [`subdivision_code`][google.ads.datamanager.v1.EventLocation.subdivision_code]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_SUBDIVISION_CODE = 8; + */ + WARNING_REASON_INVALID_SUBDIVISION_CODE(8), + /** + * + * + *
+   * The [`region_code`][google.ads.datamanager.v1.EventLocation.region_code]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_REGION_CODE = 9; + */ + WARNING_REASON_INVALID_REGION_CODE(9), + /** + * + * + *
+   * The
+   * [`subcontinent_code`][google.ads.datamanager.v1.EventLocation.subcontinent_code]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_SUBCONTINENT_CODE = 10; + */ + WARNING_REASON_INVALID_SUBCONTINENT_CODE(10), + /** + * + * + *
+   * The
+   * [`continent_code`][google.ads.datamanager.v1.EventLocation.continent_code]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_CONTINENT_CODE = 11; + */ + WARNING_REASON_INVALID_CONTINENT_CODE(11), + /** + * + * + *
+   * The device [`category`][google.ads.datamanager.v1.DeviceInfo.category]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_DEVICE_CATEGORY = 12; + */ + WARNING_REASON_INVALID_DEVICE_CATEGORY(12), + /** + * + * + *
+   * The device
+   * [`screen_height`][google.ads.datamanager.v1.DeviceInfo.screen_height] or
+   * [`screen_width`][google.ads.datamanager.v1.DeviceInfo.screen_width] is
+   * invalid.
+   * 
+ * + * WARNING_REASON_INVALID_DEVICE_SCREEN_RESOLUTION = 13; + */ + WARNING_REASON_INVALID_DEVICE_SCREEN_RESOLUTION(13), + /** + * + * + *
+   * The [`merchant_id`][google.ads.datamanager.v1.CartData.merchant_id] is
+   * invalid.
+   * 
+ * + * WARNING_REASON_INVALID_MERCHANT_ID = 14; + */ + WARNING_REASON_INVALID_MERCHANT_ID(14), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WarningReason"); + } + + /** + * + * + *
+   * Unspecified warning reason.
+   * 
+ * + * WARNING_REASON_UNSPECIFIED = 0; + */ + public static final int WARNING_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * A custom variable in
+   * [`custom_variables`][google.ads.datamanager.v1.Event.custom_variables] is
+   * not enabled in the account.
+   * 
+ * + * WARNING_REASON_CUSTOM_VARIABLE_NOT_ENABLED = 1; + */ + public static final int WARNING_REASON_CUSTOM_VARIABLE_NOT_ENABLED_VALUE = 1; + + /** + * + * + *
+   * A custom variable value in
+   * [`custom_variables`][google.ads.datamanager.v1.Event.custom_variables] is
+   * not among the predefined allowed values configured for the custom variable
+   * on the destination account.
+   * 
+ * + * WARNING_REASON_CUSTOM_VARIABLE_NOT_PREDEFINED = 2; + */ + public static final int WARNING_REASON_CUSTOM_VARIABLE_NOT_PREDEFINED_VALUE = 2; + + /** + * + * + *
+   * The [`cart_data`][google.ads.datamanager.v1.Event.cart_data] is not
+   * supported with [`gbraid`][google.ads.datamanager.v1.AdIdentifiers.gbraid]
+   * or [`wbraid`][google.ads.datamanager.v1.AdIdentifiers.wbraid].
+   * 
+ * + * WARNING_REASON_CART_DATA_NOT_SUPPORTED_WITH_GBRAID_OR_WBRAID = 3; + */ + public static final int WARNING_REASON_CART_DATA_NOT_SUPPORTED_WITH_GBRAID_OR_WBRAID_VALUE = 3; + + /** + * + * + *
+   * The
+   * [`merchant_product_id`][google.ads.datamanager.v1.Item.merchant_product_id]
+   * is missing in the cart item.
+   * 
+ * + * WARNING_REASON_CART_DATA_ITEM_MERCHANT_PRODUCT_ID_MISSING = 4; + */ + public static final int WARNING_REASON_CART_DATA_ITEM_MERCHANT_PRODUCT_ID_MISSING_VALUE = 4; + + /** + * + * + *
+   * The [`unit_price`][google.ads.datamanager.v1.Item.unit_price] is missing in
+   * the cart item.
+   * 
+ * + * WARNING_REASON_CART_DATA_ITEM_UNIT_PRICE_MISSING = 5; + */ + public static final int WARNING_REASON_CART_DATA_ITEM_UNIT_PRICE_MISSING_VALUE = 5; + + /** + * + * + *
+   * Generic warning reason for issues that do not fit into other specific
+   * categories.
+   * 
+ * + * WARNING_REASON_GENERIC = 6; + */ + public static final int WARNING_REASON_GENERIC_VALUE = 6; + + /** + * + * + *
+   * The [`client_id`][google.ads.datamanager.v1.Event.client_id] is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_CLIENT_ID = 7; + */ + public static final int WARNING_REASON_INVALID_CLIENT_ID_VALUE = 7; + + /** + * + * + *
+   * The
+   * [`subdivision_code`][google.ads.datamanager.v1.EventLocation.subdivision_code]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_SUBDIVISION_CODE = 8; + */ + public static final int WARNING_REASON_INVALID_SUBDIVISION_CODE_VALUE = 8; + + /** + * + * + *
+   * The [`region_code`][google.ads.datamanager.v1.EventLocation.region_code]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_REGION_CODE = 9; + */ + public static final int WARNING_REASON_INVALID_REGION_CODE_VALUE = 9; + + /** + * + * + *
+   * The
+   * [`subcontinent_code`][google.ads.datamanager.v1.EventLocation.subcontinent_code]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_SUBCONTINENT_CODE = 10; + */ + public static final int WARNING_REASON_INVALID_SUBCONTINENT_CODE_VALUE = 10; + + /** + * + * + *
+   * The
+   * [`continent_code`][google.ads.datamanager.v1.EventLocation.continent_code]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_CONTINENT_CODE = 11; + */ + public static final int WARNING_REASON_INVALID_CONTINENT_CODE_VALUE = 11; + + /** + * + * + *
+   * The device [`category`][google.ads.datamanager.v1.DeviceInfo.category]
+   * is invalid.
+   * 
+ * + * WARNING_REASON_INVALID_DEVICE_CATEGORY = 12; + */ + public static final int WARNING_REASON_INVALID_DEVICE_CATEGORY_VALUE = 12; + + /** + * + * + *
+   * The device
+   * [`screen_height`][google.ads.datamanager.v1.DeviceInfo.screen_height] or
+   * [`screen_width`][google.ads.datamanager.v1.DeviceInfo.screen_width] is
+   * invalid.
+   * 
+ * + * WARNING_REASON_INVALID_DEVICE_SCREEN_RESOLUTION = 13; + */ + public static final int WARNING_REASON_INVALID_DEVICE_SCREEN_RESOLUTION_VALUE = 13; + + /** + * + * + *
+   * The [`merchant_id`][google.ads.datamanager.v1.CartData.merchant_id] is
+   * invalid.
+   * 
+ * + * WARNING_REASON_INVALID_MERCHANT_ID = 14; + */ + public static final int WARNING_REASON_INVALID_MERCHANT_ID_VALUE = 14; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WarningReason 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 WarningReason forNumber(int value) { + switch (value) { + case 0: + return WARNING_REASON_UNSPECIFIED; + case 1: + return WARNING_REASON_CUSTOM_VARIABLE_NOT_ENABLED; + case 2: + return WARNING_REASON_CUSTOM_VARIABLE_NOT_PREDEFINED; + case 3: + return WARNING_REASON_CART_DATA_NOT_SUPPORTED_WITH_GBRAID_OR_WBRAID; + case 4: + return WARNING_REASON_CART_DATA_ITEM_MERCHANT_PRODUCT_ID_MISSING; + case 5: + return WARNING_REASON_CART_DATA_ITEM_UNIT_PRICE_MISSING; + case 6: + return WARNING_REASON_GENERIC; + case 7: + return WARNING_REASON_INVALID_CLIENT_ID; + case 8: + return WARNING_REASON_INVALID_SUBDIVISION_CODE; + case 9: + return WARNING_REASON_INVALID_REGION_CODE; + case 10: + return WARNING_REASON_INVALID_SUBCONTINENT_CODE; + case 11: + return WARNING_REASON_INVALID_CONTINENT_CODE; + case 12: + return WARNING_REASON_INVALID_DEVICE_CATEGORY; + case 13: + return WARNING_REASON_INVALID_DEVICE_SCREEN_RESOLUTION; + case 14: + return WARNING_REASON_INVALID_MERCHANT_ID; + 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 WarningReason findValueByNumber(int number) { + return WarningReason.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.ProcessingErrorsProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final WarningReason[] VALUES = values(); + + public static WarningReason 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 WarningReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.WarningReason) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto index 12f3c58dcd34..4ef0a4a61282 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto @@ -101,9 +101,9 @@ message AdEvent { // found. UserData user_data = 7 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Information gathered about the device being used when the ad + // Required. Information gathered about the device being used when the ad // event happened. - DeviceInfo device_info = 8 [(google.api.field_behavior) = OPTIONAL]; + DeviceInfo device_info = 8 [(google.api.field_behavior) = REQUIRED]; // Optional. The device ID of the device that the ad was served to. string mobile_device_id = 9 [(google.api.field_behavior) = OPTIONAL]; @@ -162,8 +162,8 @@ message AdEvent { // Optional. The width of the ad in pixels. int32 ad_width = 21 [(google.api.field_behavior) = OPTIONAL]; - // Required. The ISO 3166-2 country plus subdivision. - string region_code = 22 [(google.api.field_behavior) = REQUIRED]; + // Optional. The ISO 3166-2 country plus subdivision. + string region_code = 22 [(google.api.field_behavior) = OPTIONAL]; // Required. The platform source of the ad, akin to the Google Analytics // source. diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto index 940f7b0f95f4..f321ad955eeb 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/audience.proto @@ -63,6 +63,12 @@ message AudienceMember { // Group of multiple identifier types. CompositeData composite_data = 8; + + // Encrypted Google User IDs. + GoogleUserIdData google_user_id_data = 9; + + // Partner-provided identifiers. + PartnerProvidedIdData partner_provided_id_data = 10; } // Optional. The consent setting for the user. @@ -84,8 +90,10 @@ message PairData { // Mobile IDs for the audience. At least one mobile ID is required. message MobileData { - // Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 - // `mobileIds` can be provided in a single + // Required. The list of mobile device IDs (Android advertising ID, iOS IDFA + // for Customer Match user lists and Android advertising ID, iOS IDFA, + // Xbox or Microsoft ID, Amazon Fire TV ID, Roku ID, Generic Device ID for + // basic user lists). At most 10 `mobileIds` can be provided in a single // [AudienceMember][google.ads.datamanager.v1.AudienceMember]. repeated string mobile_ids = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -137,3 +145,18 @@ message IpData { google.protobuf.Timestamp observe_end_time = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Google user id data holding encrypted google user IDs. At least one google +// user ID is required. +message GoogleUserIdData { + // Required. The list of encrypted google user IDs. + repeated string google_user_ids = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Partner-provided data holding the partner-provided identifiers. At least one +// partner-provided identifier is required. +message PartnerProvidedIdData { + // Required. The list of partner-provided identifiers. + repeated string partner_provided_ids = 1 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto index 1f4f4a4cb324..42075fcbd523 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto @@ -32,7 +32,8 @@ message DeviceInfo { // Optional. The user-agent string of the device for the given context. string user_agent = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The IP address of the device for the given context. + // Optional. The IP address of the device for the given context. Required when + // used in an [AdEvent][google.ads.datamanager.v1.AdEvent]. // // **Note:** Google Ads does not support IP address matching for end users in // the European Economic Area (EEA), United Kingdom (UK), or Switzerland (CH). diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto index 98d6ae724528..ce455829080f 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto @@ -416,4 +416,12 @@ enum ErrorReason { // Insights missing for this dimension. INSIGHTS_MISSING_FOR_DIMENSION = 123; + + // A required prerequisite link (such as a Google Ads link) must exist for + // the Google Analytics property to perform this operation. + REQUIRED_PREREQUISITE_LINK_MISSING = 124; + + // The remove as of time must be in the past or present. Future timestamps are + // not permitted for removing audience members. + INVALID_REMOVE_AS_OF_TIME = 125; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto index 538e2d2ff472..51c99ae267c4 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto @@ -22,11 +22,13 @@ import "google/ads/datamanager/v1/consent.proto"; import "google/ads/datamanager/v1/destination.proto"; import "google/ads/datamanager/v1/encryption_info.proto"; import "google/ads/datamanager/v1/event.proto"; +import "google/ads/datamanager/v1/processing_errors.proto"; import "google/ads/datamanager/v1/request_status_per_destination.proto"; import "google/ads/datamanager/v1/terms_of_service.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; @@ -64,6 +66,15 @@ service IngestionService { }; } + // Removes all audience members from the provided destinations. + rpc RemoveAllAudienceMembers(RemoveAllAudienceMembersRequest) + returns (RemoveAllAudienceMembersResponse) { + option (google.api.http) = { + post: "/v1/audienceMembers:removeAll" + body: "*" + }; + } + // Uploads a list of // [Event][google.ads.datamanager.v1.Event] resources from // the provided [Destination][google.ads.datamanager.v1.Destination]. @@ -141,6 +152,9 @@ message IngestAudienceMembersRequest { message IngestAudienceMembersResponse { // The auto-generated ID of the request. string request_id = 1; + + // Detailed row-level warnings with field paths. + repeated FieldWarning field_warnings = 2; } // Request to remove users from an audience in the provided destinations. @@ -179,6 +193,32 @@ message RemoveAudienceMembersResponse { string request_id = 1; } +// Request to remove all users from an audience in the provided destinations. +// Returns a +// [RemoveAllAudienceMembersResponse][google.ads.datamanager.v1.RemoveAllAudienceMembersResponse]. +message RemoveAllAudienceMembersRequest { + // Required. The list of destinations to remove the users from. + repeated Destination destinations = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The remove as of time. If set, only audience members last added + // before this time will be removed. If not set, it defaults to current time. + // The remove as of time must not be in the future. + google.protobuf.Timestamp remove_as_of_time = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. For testing purposes. If `true`, the request is validated but not + // executed. Only errors are returned, not results. + bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response from the +// [RemoveAllAudienceMembersRequest][google.ads.datamanager.v1.RemoveAllAudienceMembersRequest]. +message RemoveAllAudienceMembersResponse { + // The auto-generated ID of the request. + string request_id = 1; +} + // Request to upload audience members to the provided destinations. Returns an // [IngestEventsResponse][google.ads.datamanager.v1.IngestEventsResponse]. message IngestEventsRequest { @@ -221,6 +261,9 @@ message IngestEventsRequest { message IngestEventsResponse { // The auto-generated ID of the request. string request_id = 1; + + // Detailed row-level warnings with field paths. + repeated FieldWarning field_warnings = 2; } // Request to upload ad events. @@ -228,12 +271,13 @@ message IngestAdEventsRequest { // Required. Required (at least 1). A list of ad events. repeated AdEvent ad_events = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. Information about encryption keys which are used to encrypt the + // Required. Information about encryption keys which are used to encrypt the // data. - EncryptionInfo encryption_info = 2 [(google.api.field_behavior) = OPTIONAL]; + EncryptionInfo encryption_info = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. If true, the request is validated, but not executed. - bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; + bool validate_only = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Response from an ad event ingestion operation. diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto index 9148b1366832..b37b303e8ba2 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto @@ -145,7 +145,7 @@ message SearchPartnerLinksRequest { // The maximum number of partner links to return. The service may return // fewer than this value. - // If unspecified, at most 10 partner links will be returned. + // If unspecified, at most 50 partner links will be returned. // The maximum value is 100; values above 100 will be coerced to 100. int32 page_size = 2; @@ -176,6 +176,13 @@ message SearchPartnerLinksRequest { // - `owning_account.account_id` // - `partner_account.account_type` // - `partner_account.account_id` + // - `feature_set` + // + // For partner links with the + // [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + // feature set, the following fields are also supported: + // + // - `partner_customer_account.account_id` // // Example: // `owning_account.account_type = "GOOGLE_ADS" AND partner_account.account_id diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto index 4fed562e5eaf..4a6c9151c7cf 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/processing_errors.proto @@ -203,6 +203,10 @@ enum ProcessingErrorReason { // A corresponding click can't be found that matches the provided attributes. PROCESSING_ERROR_REASON_CLICK_NOT_FOUND = 43; + + // External attribution data is missing. Sending events to a destination for + // an external attribution conversion action isn't supported. + PROCESSING_ERROR_REASON_EXTERNAL_ATTRIBUTION_DATA_MISSING = 44; } // The processing warning reason. @@ -241,3 +245,87 @@ enum ProcessingWarningReason { // The system failed to authenticate with AWS. PROCESSING_WARNING_REASON_AWS_AUTH_FAILED = 9; } + +// Detailed row-level warning with field paths. +message FieldWarning { + // The warning reason. + WarningReason reason = 1; + + // The detailed warning message describing the issue. + string description = 2; + + // The field path that triggered the warning. Uses the same format as + // [google.rpc.BadRequest.FieldViolation.field][google.rpc.BadRequest.FieldViolation.field]. + string field = 3; +} + +// Reasons for non-blocking warnings returned during ingestion. +enum WarningReason { + // Unspecified warning reason. + WARNING_REASON_UNSPECIFIED = 0; + + // A custom variable in + // [`custom_variables`][google.ads.datamanager.v1.Event.custom_variables] is + // not enabled in the account. + WARNING_REASON_CUSTOM_VARIABLE_NOT_ENABLED = 1; + + // A custom variable value in + // [`custom_variables`][google.ads.datamanager.v1.Event.custom_variables] is + // not among the predefined allowed values configured for the custom variable + // on the destination account. + WARNING_REASON_CUSTOM_VARIABLE_NOT_PREDEFINED = 2; + + // The [`cart_data`][google.ads.datamanager.v1.Event.cart_data] is not + // supported with [`gbraid`][google.ads.datamanager.v1.AdIdentifiers.gbraid] + // or [`wbraid`][google.ads.datamanager.v1.AdIdentifiers.wbraid]. + WARNING_REASON_CART_DATA_NOT_SUPPORTED_WITH_GBRAID_OR_WBRAID = 3; + + // The + // [`merchant_product_id`][google.ads.datamanager.v1.Item.merchant_product_id] + // is missing in the cart item. + WARNING_REASON_CART_DATA_ITEM_MERCHANT_PRODUCT_ID_MISSING = 4; + + // The [`unit_price`][google.ads.datamanager.v1.Item.unit_price] is missing in + // the cart item. + WARNING_REASON_CART_DATA_ITEM_UNIT_PRICE_MISSING = 5; + + // Generic warning reason for issues that do not fit into other specific + // categories. + WARNING_REASON_GENERIC = 6; + + // The [`client_id`][google.ads.datamanager.v1.Event.client_id] is invalid. + WARNING_REASON_INVALID_CLIENT_ID = 7; + + // The + // [`subdivision_code`][google.ads.datamanager.v1.EventLocation.subdivision_code] + // is invalid. + WARNING_REASON_INVALID_SUBDIVISION_CODE = 8; + + // The [`region_code`][google.ads.datamanager.v1.EventLocation.region_code] + // is invalid. + WARNING_REASON_INVALID_REGION_CODE = 9; + + // The + // [`subcontinent_code`][google.ads.datamanager.v1.EventLocation.subcontinent_code] + // is invalid. + WARNING_REASON_INVALID_SUBCONTINENT_CODE = 10; + + // The + // [`continent_code`][google.ads.datamanager.v1.EventLocation.continent_code] + // is invalid. + WARNING_REASON_INVALID_CONTINENT_CODE = 11; + + // The device [`category`][google.ads.datamanager.v1.DeviceInfo.category] + // is invalid. + WARNING_REASON_INVALID_DEVICE_CATEGORY = 12; + + // The device + // [`screen_height`][google.ads.datamanager.v1.DeviceInfo.screen_height] or + // [`screen_width`][google.ads.datamanager.v1.DeviceInfo.screen_width] is + // invalid. + WARNING_REASON_INVALID_DEVICE_SCREEN_RESOLUTION = 13; + + // The [`merchant_id`][google.ads.datamanager.v1.CartData.merchant_id] is + // invalid. + WARNING_REASON_INVALID_MERCHANT_ID = 14; +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto index 38d14c08c1dc..52e4f4d057a8 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/request_status_per_destination.proto @@ -81,6 +81,14 @@ message RequestStatusPerDestination { // The status of the composite data ingestion to the destination. IngestCompositeDataStatus composite_data_ingestion_status = 6; + + // The status of the google user id data ingestion to the destination. + IngestGoogleUserIdDataStatus google_user_id_data_ingestion_status = 7; + + // The status of the partner provided id data ingestion to the + // destination. + IngestPartnerProvidedIdDataStatus + partner_provided_id_data_ingestion_status = 8; } } @@ -105,9 +113,20 @@ message RequestStatusPerDestination { // The status of the composite data removal from the destination. RemoveCompositeDataStatus composite_data_removal_status = 6; + + // The status of the google user id data removal from the destination. + RemoveGoogleUserIdDataStatus google_user_id_data_removal_status = 7; + + // The status of the partner provided id data removal from the + // destination. + RemovePartnerProvidedIdDataStatus + partner_provided_id_data_removal_status = 8; } } + // The status of the remove all audience members request. + message RemoveAllAudienceMembersStatus {} + // The status of the events ingestion to the destination. message IngestEventsStatus { // The total count of events sent in the upload request. Includes all @@ -285,6 +304,60 @@ message RequestStatusPerDestination { repeated DataTypeCount data_type_counts = 2; } + // The status of the google user id data ingestion to the destination + // containing stats related to the ingestion. + message IngestGoogleUserIdDataStatus { + // The total count of audience members sent in the upload request for the + // destination. Includes all audience members in the request, regardless of + // whether they were successfully ingested or not. + int64 record_count = 1; + + // The total count of google user ids sent in the upload request for the + // destination. Includes all google user ids in the request, regardless of + // whether they were successfully ingested or not. + int64 google_user_id_count = 2; + } + + // The status of the google user id data removal from the destination. + message RemoveGoogleUserIdDataStatus { + // The total count of audience members sent in the removal request. Includes + // all audience members in the request, regardless of whether they were + // successfully removed or not. + int64 record_count = 1; + + // The total count of google user ids sent in the removal request. Includes + // all google user ids in the request, regardless of whether they were + // successfully removed or not. + int64 google_user_id_count = 2; + } + + // The status of the partner provided id data ingestion to the destination + // containing stats related to the ingestion. + message IngestPartnerProvidedIdDataStatus { + // The total count of audience members sent in the upload request for the + // destination. Includes all audience members in the request, regardless of + // whether they were successfully ingested or not. + int64 record_count = 1; + + // The total count of partner provided ids sent in the upload request for + // the destination. Includes all partner provided ids in the request, + // regardless of whether they were successfully ingested or not. + int64 partner_provided_id_count = 2; + } + + // The status of the partner provided id data removal from the destination. + message RemovePartnerProvidedIdDataStatus { + // The total count of audience members sent in the removal request. Includes + // all audience members in the request, regardless of whether they were + // successfully removed or not. + int64 record_count = 1; + + // The total count of partner provided ids sent in the removal request. + // Includes all partner provided ids in the request, regardless of whether + // they were successfully removed or not. + int64 partner_provided_id_count = 2; + } + // The count for a specific data type. message DataTypeCount { // The type of data. @@ -348,5 +421,8 @@ message RequestStatusPerDestination { // The status of the remove audience members request. RemoveAudienceMembersStatus audience_members_removal_status = 6; + + // The status of the remove all audience members request. + RemoveAllAudienceMembersStatus remove_all_audience_members_status = 8; } } diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto index 887c02b30e97..bbd1220035a9 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_data.proto @@ -71,4 +71,33 @@ message AddressInfo { // Required. The postal code of the user's address. string postal_code = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The street and number of the user's address. Used only for + // Google Analytics. This field is hashed and possibly encrypted. + // + // Normalize the value before hashing: + // + // - Remove symbol characters + // - Convert to lowercase + // - Remove leading and trailing whitespace + string address_line = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The city of the user's address. Used only for Google Analytics. + // + // The value should be normalized as such: + // + // - Remove symbol characters + // - Convert to lowercase + // - Remove leading and trailing whitespace + string city = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The administrative area (state/province) of the user's address. + // Used only for Google Analytics. + // + // The value should be normalized as such: + // + // - Remove symbol characters + // - Convert to lowercase + // - Remove leading and trailing whitespace + string administrative_area = 7 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list.proto index 401d72e2f733..6d1d61e43ccc 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list.proto @@ -207,6 +207,7 @@ message IngestedUserListInfo { PAIR_ID = 4; // Data Management Platform IDs: + // // - Google User ID // - Partner Provided ID // - Publisher Provided ID @@ -215,6 +216,7 @@ message IngestedUserListInfo { // - Roku ID // - Amazon Fire TV ID // - Xbox or Microsoft ID + // - Generic Device ID PSEUDONYMOUS_ID = 5; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_direct_license_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_direct_license_service.proto index d74d651a3511..bb5e04e8642a 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_direct_license_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_direct_license_service.proto @@ -165,6 +165,10 @@ message ListUserListDirectLicensesRequest { // - `<` // - `<=` // + // **Supported Functions:** + // - `IN(field, value1, value2, ...)`: returns true if the field matches any + // of the values. Example: `IN(user_list_id, 123, 456)` + // // **Unsupported Fields:** // // - `name` (use get method instead) diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_global_license_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_global_license_service.proto index dd81ffbb0c7f..caa9c38e8b3e 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_global_license_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_global_license_service.proto @@ -177,6 +177,10 @@ message ListUserListGlobalLicensesRequest { // - `<` // - `<=` // + // **Supported Functions:** + // - `IN(field, value1, value2, ...)`: returns true if the field matches any + // of the values. Example: `IN(user_list_id, 123, 456)` + // // **Unsupported Fields:** // // - `name` (use get method instead) @@ -246,6 +250,10 @@ message ListUserListGlobalLicenseCustomerInfosRequest { // - `<` // - `<=` // + // **Supported Functions:** + // - `IN(field, value1, value2, ...)`: returns true if the field matches any + // of the values. Example: `IN(user_list_id, 123, 456)` + // // **Unsupported Fields:** // // - `name` (use get method instead) diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_service.proto index 8eafbbb56779..d8400cc0ed49 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/user_list_service.proto @@ -201,6 +201,10 @@ message ListUserListsRequest { // - `<=` // - `:` (has) // + // **Supported Functions:** + // - `IN(field, value1, value2, ...)`: returns true if the field matches any + // of the values. Example: `IN(display_name, "name1", "name2")` + // // Supported fields: // // - `id` diff --git a/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/removeallaudiencemembers/AsyncRemoveAllAudienceMembers.java b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/removeallaudiencemembers/AsyncRemoveAllAudienceMembers.java new file mode 100644 index 000000000000..463a441f5114 --- /dev/null +++ b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/removeallaudiencemembers/AsyncRemoveAllAudienceMembers.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.ads.datamanager.v1.samples; + +// [START datamanager_v1_generated_IngestionService_RemoveAllAudienceMembers_async] +import com.google.ads.datamanager.v1.Destination; +import com.google.ads.datamanager.v1.IngestionServiceClient; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse; +import com.google.api.core.ApiFuture; +import com.google.protobuf.Timestamp; +import java.util.ArrayList; + +public class AsyncRemoveAllAudienceMembers { + + public static void main(String[] args) throws Exception { + asyncRemoveAllAudienceMembers(); + } + + public static void asyncRemoveAllAudienceMembers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) { + RemoveAllAudienceMembersRequest request = + RemoveAllAudienceMembersRequest.newBuilder() + .addAllDestinations(new ArrayList()) + .setRemoveAsOfTime(Timestamp.newBuilder().build()) + .setValidateOnly(true) + .build(); + ApiFuture future = + ingestionServiceClient.removeAllAudienceMembersCallable().futureCall(request); + // Do something. + RemoveAllAudienceMembersResponse response = future.get(); + } + } +} +// [END datamanager_v1_generated_IngestionService_RemoveAllAudienceMembers_async] diff --git a/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/removeallaudiencemembers/SyncRemoveAllAudienceMembers.java b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/removeallaudiencemembers/SyncRemoveAllAudienceMembers.java new file mode 100644 index 000000000000..882ce9331139 --- /dev/null +++ b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/removeallaudiencemembers/SyncRemoveAllAudienceMembers.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.ads.datamanager.v1.samples; + +// [START datamanager_v1_generated_IngestionService_RemoveAllAudienceMembers_sync] +import com.google.ads.datamanager.v1.Destination; +import com.google.ads.datamanager.v1.IngestionServiceClient; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersRequest; +import com.google.ads.datamanager.v1.RemoveAllAudienceMembersResponse; +import com.google.protobuf.Timestamp; +import java.util.ArrayList; + +public class SyncRemoveAllAudienceMembers { + + public static void main(String[] args) throws Exception { + syncRemoveAllAudienceMembers(); + } + + public static void syncRemoveAllAudienceMembers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) { + RemoveAllAudienceMembersRequest request = + RemoveAllAudienceMembersRequest.newBuilder() + .addAllDestinations(new ArrayList()) + .setRemoveAsOfTime(Timestamp.newBuilder().build()) + .setValidateOnly(true) + .build(); + RemoveAllAudienceMembersResponse response = + ingestionServiceClient.removeAllAudienceMembers(request); + } + } +} +// [END datamanager_v1_generated_IngestionService_RemoveAllAudienceMembers_sync] diff --git a/java-dataplex/README.md b/java-dataplex/README.md index b4479157d849..20c8b39c9499 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.92.0 + 1.93.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataplex' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.92.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.93.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataplex/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index c324bd6a4ba4..036115aed1b5 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataproc-metastore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.95.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc-metastore/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc/README.md b/java-dataproc/README.md index e215e8cac1d9..de43c5c0dbe1 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.91.0 + 4.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.91.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datastore/README.md b/java-datastore/README.md index a2790e3bd4d1..5c6d6f094a24 100644 --- a/java-datastore/README.md +++ b/java-datastore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastore - 3.2.0 + 3.3.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastore:3.2.0' +implementation 'com.google.cloud:google-cloud-datastore:3.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "3.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "3.3.0" ``` ## Authentication @@ -473,7 +473,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastore/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/3.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/3.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datastream/README.md b/java-datastream/README.md index e9f2404bd3c4..d488121c7229 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.93.0 + 1.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastream' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.93.0' +implementation 'com.google.cloud:google-cloud-datastream:1.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastream/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-deploy/README.md b/java-deploy/README.md index dc37882f7dad..e2b243e7fdff 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.92.0 + 1.93.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-deploy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.92.0' +implementation 'com.google.cloud:google-cloud-deploy:1.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.93.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-deploy/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index d0d4e1e4087e..b7e84fb9a453 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.51.0 + 0.52.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-developerconnect' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.51.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.52.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerknowledge/README.md b/java-developerknowledge/README.md index 37a90fd3763f..4d2ac2cc0a21 100644 --- a/java-developerknowledge/README.md +++ b/java-developerknowledge/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developer-knowledge - 0.2.0 + 0.3.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-developer-knowledge' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developer-knowledge:0.2.0' +implementation 'com.google.cloud:google-cloud-developer-knowledge:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developer-knowledge" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developer-knowledge" % "0.3.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developer-knowledge/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developer-knowledge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developer-knowledge/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developer-knowledge/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-devicestreaming/README.md b/java-devicestreaming/README.md index 5322828b3cb8..4eaae6818ff1 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 0.34.0 + 0.35.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-devicestreaming' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.34.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.35.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index f3b21a6b22fd..7703182f7265 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.105.0 + 0.106.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dialogflow-cx' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.105.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.106.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.106.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index b43fdf04f716..7f21a77de969 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.100.0 + 4.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dialogflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.100.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index cb315674d268..fd5bd052cd07 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.90.0 + 0.91.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-discoveryengine' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.90.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.91.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 8a1ffb1ce000..f776c971dc31 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.91.0 + 0.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-distributedcloudedge' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.91.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-distributedcloudedge/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dlp/README.md b/java-dlp/README.md index ea4f06fe8d43..379fa6661497 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.98.0 + 3.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dlp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.98.0' +implementation 'com.google.cloud:google-cloud-dlp:3.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dlp/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.99.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/README.md b/java-dms/README.md index cce48b061f8f..33c776114cb9 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.93.0 + 2.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dms' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.93.0' +implementation 'com.google.cloud:google-cloud-dms:2.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dms/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-document-ai/README.md b/java-document-ai/README.md index c38a9b1652dd..014c6f66d196 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.98.0 + 2.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-document-ai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.98.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-document-ai/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.99.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-domains/README.md b/java-domains/README.md index 98b3614b53ba..9382aa3165f4 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.91.0 + 1.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-domains' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.91.0' +implementation 'com.google.cloud:google-cloud-domains:1.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-domains/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 52c3f833afb7..87355e03475e 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.62.0 + 0.63.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-edgenetwork' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.62.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.63.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-edgenetwork/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.63.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 82d46735b6e9..eccd02c8b2d4 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.90.0 + 0.91.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.90.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.91.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 4a3a1d9e89a0..f1c7bfbe389b 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.215.0-beta + 0.216.0-beta ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-errorreporting' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.215.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.216.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.215.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.216.0-beta" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-errorreporting/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.215.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.216.0-beta [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index 81a90bd613ab..767fdd7a7a01 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-essential-contacts' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.94.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-essential-contacts/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 6372aea9085a..7c1b92eade45 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.94.0 + 0.95.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-eventarc-publishing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.94.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.95.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc-publishing/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 240c08fcbb2e..7f4de772a4c9 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.94.0 + 1.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-eventarc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.94.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-filestore/README.md b/java-filestore/README.md index b8dec8c04b53..e4f6e2dd6947 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.95.0 + 1.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-filestore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.95.0' +implementation 'com.google.cloud:google-cloud-filestore:1.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-filestore/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-financialservices/README.md b/java-financialservices/README.md index 94313b778bf6..2cb112002bec 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 0.35.0 + 0.36.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-financialservices' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.35.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.36.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.36.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-firestore/README.md b/java-firestore/README.md index 348148267b3c..a68195946b47 100644 --- a/java-firestore/README.md +++ b/java-firestore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-firestore - 3.44.0 + 3.45.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-firestore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-firestore:3.44.0' +implementation 'com.google.cloud:google-cloud-firestore:3.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.45.0" ``` ## Authentication @@ -197,7 +197,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-firestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/README.md b/java-functions/README.md index de6b46af58cd..ed06d58e14e1 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.96.0 + 2.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-functions' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.96.0' +implementation 'com.google.cloud:google-cloud-functions:2.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-functions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index cfd9f119b7db..e68231a53c13 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.49.0 + 0.50.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gdchardwaremanagement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.49.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.50.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index 90685ddf4b1c..0550a3a80891 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.22.0 + 0.23.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-geminidataanalytics' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.22.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.23.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 247698524443..c23ae1d5d993 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.93.0 + 0.94.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gke-backup' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.93.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.94.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-backup/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 29e606bb2a5c..1efe914e7d02 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.95.0 + 0.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gke-connect-gateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.95.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-connect-gateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 10dcad5bc9d1..68cdc91ef618 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.93.0 + 0.94.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gke-multi-cloud' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.93.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.94.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-multi-cloud/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkehub/README.md b/java-gkehub/README.md index 04277c598853..9362c1894b42 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.94.0 + 1.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gkehub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.94.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkehub/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkerecommender/README.md b/java-gkerecommender/README.md index aef24c7cbeca..4f2a8f5d660d 100644 --- a/java-gkerecommender/README.md +++ b/java-gkerecommender/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkerecommender - 0.14.0 + 0.15.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gkerecommender' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkerecommender:0.14.0' +implementation 'com.google.cloud:google-cloud-gkerecommender:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.14.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.15.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkerecommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.15.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-grafeas/README.md b/java-grafeas/README.md index 0314f51544ec..4c1736cf1445 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: io.grafeas grafeas - 2.95.0 + 2.96.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.95.0' +implementation 'io.grafeas:grafeas:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.95.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.96.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/grafeas/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index fe6032b6869e..09a40f4ba414 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gsuite-addons' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.94.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gsuite-addons/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-health/README.md b/java-health/README.md index 0d9c7451c723..81ffe62e32d8 100644 --- a/java-health/README.md +++ b/java-health/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-health - 0.3.0 + 0.4.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-health' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-health:0.3.0' +implementation 'com.google.cloud:google-cloud-health:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-health" % "0.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-health" % "0.4.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-health/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-health.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-health/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-health/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-hypercomputecluster/README.md b/java-hypercomputecluster/README.md index 605f251717fb..e78ae64adf17 100644 --- a/java-hypercomputecluster/README.md +++ b/java-hypercomputecluster/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-hypercomputecluster - 0.14.0 + 0.15.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-hypercomputecluster' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.14.0' +implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.14.0" +libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.15.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-hypercomputecluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.15.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 94d12c156be4..831eb361ee1f 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.89.0 + 3.90.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-iam-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.89.0' +implementation 'com.google.cloud:google-iam-admin:3.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.89.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.90.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-iam-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-policy/README.md b/java-iam-policy/README.md index 6c34fc9153cd..e7ec3bde0cba 100644 --- a/java-iam-policy/README.md +++ b/java-iam-policy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.91.0 + 1.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-iam-policy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.91.0' +implementation 'com.google.cloud:google-iam-policy:1.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.91.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/AccessPoliciesClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/AccessPoliciesClient.java new file mode 100644 index 000000000000..c08d67b41158 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/AccessPoliciesClient.java @@ -0,0 +1,1640 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v3.stub.AccessPoliciesStub; +import com.google.iam.v3.stub.AccessPoliciesStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Manages Identity and Access Management (IAM) access policies. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+ *   AccessPolicyName name =
+ *       AccessPolicyName.ofProjectLocationAccessPolicyName(
+ *           "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]");
+ *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(name);
+ * }
+ * }
+ * + *

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

CreateAccessPolicy

Creates an access policy, and returns a long running operation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createAccessPolicyAsync(CreateAccessPolicyRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createAccessPolicyAsync(FolderLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) + *

  • createAccessPolicyAsync(LocationName parent, AccessPolicy accessPolicy, String accessPolicyId) + *

  • createAccessPolicyAsync(OrganizationLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) + *

  • createAccessPolicyAsync(String parent, AccessPolicy accessPolicy, String accessPolicyId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createAccessPolicyOperationCallable() + *

  • createAccessPolicyCallable() + *

+ *

GetAccessPolicy

Gets an access policy.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getAccessPolicy(GetAccessPolicyRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getAccessPolicy(AccessPolicyName name) + *

  • getAccessPolicy(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getAccessPolicyCallable() + *

+ *

UpdateAccessPolicy

Updates an access policy.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateAccessPolicyAsync(UpdateAccessPolicyRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateAccessPolicyOperationCallable() + *

  • updateAccessPolicyCallable() + *

+ *

DeleteAccessPolicy

Deletes an access policy.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteAccessPolicyAsync(DeleteAccessPolicyRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteAccessPolicyAsync(AccessPolicyName name) + *

  • deleteAccessPolicyAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteAccessPolicyOperationCallable() + *

  • deleteAccessPolicyCallable() + *

+ *

ListAccessPolicies

Lists access policies.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listAccessPolicies(ListAccessPoliciesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listAccessPolicies(FolderLocationName parent) + *

  • listAccessPolicies(LocationName parent) + *

  • listAccessPolicies(OrganizationLocationName parent) + *

  • listAccessPolicies(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listAccessPoliciesPagedCallable() + *

  • listAccessPoliciesCallable() + *

+ *

SearchAccessPolicyBindings

Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings permission on that policy.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • searchAccessPolicyBindings(SearchAccessPolicyBindingsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • searchAccessPolicyBindings(AccessPolicyName name) + *

  • searchAccessPolicyBindings(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • searchAccessPolicyBindingsPagedCallable() + *

  • searchAccessPolicyBindingsCallable() + *

+ *
+ * + *

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 AccessPoliciesSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AccessPoliciesSettings accessPoliciesSettings =
+ *     AccessPoliciesSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create(accessPoliciesSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AccessPoliciesSettings accessPoliciesSettings =
+ *     AccessPoliciesSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create(accessPoliciesSettings);
+ * }
+ * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AccessPoliciesSettings accessPoliciesSettings =
+ *     AccessPoliciesSettings.newHttpJsonBuilder().build();
+ * AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create(accessPoliciesSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class AccessPoliciesClient implements BackgroundResource { + private final @Nullable AccessPoliciesSettings settings; + private final AccessPoliciesStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AccessPoliciesClient with default settings. */ + public static final AccessPoliciesClient create() throws IOException { + return create(AccessPoliciesSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AccessPoliciesClient, 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 AccessPoliciesClient create(AccessPoliciesSettings settings) + throws IOException { + return new AccessPoliciesClient(settings); + } + + /** + * Constructs an instance of AccessPoliciesClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(AccessPoliciesSettings). + */ + public static final AccessPoliciesClient create(AccessPoliciesStub stub) { + return new AccessPoliciesClient(stub); + } + + /** + * Constructs an instance of AccessPoliciesClient, 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 AccessPoliciesClient(AccessPoliciesSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AccessPoliciesStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AccessPoliciesClient(AccessPoliciesStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final @Nullable AccessPoliciesSettings getSettings() { + return settings; + } + + public AccessPoliciesStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+   *   AccessPolicy accessPolicy = AccessPolicy.newBuilder().build();
+   *   String accessPolicyId = "accessPolicyId97623921";
+   *   AccessPolicy response =
+   *       accessPoliciesClient.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this access policy will be created. + *

Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @param accessPolicy Required. The access policy to create. + * @param accessPolicyId Required. The ID to use for the access policy, which will become the + * final component of the access policy's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-\\.]{2,62}/. + *

This value must be unique among all access policies with the same parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAccessPolicyAsync( + @Nullable FolderLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { + CreateAccessPolicyRequest request = + CreateAccessPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAccessPolicy(accessPolicy) + .setAccessPolicyId(accessPolicyId) + .build(); + return createAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   AccessPolicy accessPolicy = AccessPolicy.newBuilder().build();
+   *   String accessPolicyId = "accessPolicyId97623921";
+   *   AccessPolicy response =
+   *       accessPoliciesClient.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this access policy will be created. + *

Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @param accessPolicy Required. The access policy to create. + * @param accessPolicyId Required. The ID to use for the access policy, which will become the + * final component of the access policy's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-\\.]{2,62}/. + *

This value must be unique among all access policies with the same parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAccessPolicyAsync( + @Nullable LocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { + CreateAccessPolicyRequest request = + CreateAccessPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAccessPolicy(accessPolicy) + .setAccessPolicyId(accessPolicyId) + .build(); + return createAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   AccessPolicy accessPolicy = AccessPolicy.newBuilder().build();
+   *   String accessPolicyId = "accessPolicyId97623921";
+   *   AccessPolicy response =
+   *       accessPoliciesClient.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this access policy will be created. + *

Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @param accessPolicy Required. The access policy to create. + * @param accessPolicyId Required. The ID to use for the access policy, which will become the + * final component of the access policy's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-\\.]{2,62}/. + *

This value must be unique among all access policies with the same parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAccessPolicyAsync( + @Nullable OrganizationLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { + CreateAccessPolicyRequest request = + CreateAccessPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAccessPolicy(accessPolicy) + .setAccessPolicyId(accessPolicyId) + .build(); + return createAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+   *   AccessPolicy accessPolicy = AccessPolicy.newBuilder().build();
+   *   String accessPolicyId = "accessPolicyId97623921";
+   *   AccessPolicy response =
+   *       accessPoliciesClient.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this access policy will be created. + *

Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @param accessPolicy Required. The access policy to create. + * @param accessPolicyId Required. The ID to use for the access policy, which will become the + * final component of the access policy's resource name. + *

This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-\\.]{2,62}/. + *

This value must be unique among all access policies with the same parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAccessPolicyAsync( + String parent, AccessPolicy accessPolicy, String accessPolicyId) { + CreateAccessPolicyRequest request = + CreateAccessPolicyRequest.newBuilder() + .setParent(parent) + .setAccessPolicy(accessPolicy) + .setAccessPolicyId(accessPolicyId) + .build(); + return createAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   CreateAccessPolicyRequest request =
+   *       CreateAccessPolicyRequest.newBuilder()
+   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+   *           .setAccessPolicyId("accessPolicyId97623921")
+   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   AccessPolicy response = accessPoliciesClient.createAccessPolicyAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAccessPolicyAsync( + CreateAccessPolicyRequest request) { + return createAccessPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   CreateAccessPolicyRequest request =
+   *       CreateAccessPolicyRequest.newBuilder()
+   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+   *           .setAccessPolicyId("accessPolicyId97623921")
+   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       accessPoliciesClient.createAccessPolicyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AccessPolicy response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createAccessPolicyOperationCallable() { + return stub.createAccessPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns a long running operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   CreateAccessPolicyRequest request =
+   *       CreateAccessPolicyRequest.newBuilder()
+   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+   *           .setAccessPolicyId("accessPolicyId97623921")
+   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       accessPoliciesClient.createAccessPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createAccessPolicyCallable() { + return stub.createAccessPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   AccessPolicyName name =
+   *       AccessPolicyName.ofProjectLocationAccessPolicyName(
+   *           "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]");
+   *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The name of the access policy to retrieve. + *

Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessPolicy getAccessPolicy(@Nullable AccessPolicyName name) { + GetAccessPolicyRequest request = + GetAccessPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAccessPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   String name =
+   *       AccessPolicyName.ofOrganizationLocationAccessPolicyName(
+   *               "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
+   *           .toString();
+   *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(name);
+   * }
+   * }
+ * + * @param name Required. The name of the access policy to retrieve. + *

Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessPolicy getAccessPolicy(String name) { + GetAccessPolicyRequest request = GetAccessPolicyRequest.newBuilder().setName(name).build(); + return getAccessPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   GetAccessPolicyRequest request =
+   *       GetAccessPolicyRequest.newBuilder()
+   *           .setName(
+   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
+   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
+   *                   .toString())
+   *           .build();
+   *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(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 AccessPolicy getAccessPolicy(GetAccessPolicyRequest request) { + return getAccessPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   GetAccessPolicyRequest request =
+   *       GetAccessPolicyRequest.newBuilder()
+   *           .setName(
+   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
+   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       accessPoliciesClient.getAccessPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   AccessPolicy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAccessPolicyCallable() { + return stub.getAccessPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   UpdateAccessPolicyRequest request =
+   *       UpdateAccessPolicyRequest.newBuilder()
+   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   AccessPolicy response = accessPoliciesClient.updateAccessPolicyAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAccessPolicyAsync( + UpdateAccessPolicyRequest request) { + return updateAccessPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   UpdateAccessPolicyRequest request =
+   *       UpdateAccessPolicyRequest.newBuilder()
+   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       accessPoliciesClient.updateAccessPolicyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   AccessPolicy response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateAccessPolicyOperationCallable() { + return stub.updateAccessPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   UpdateAccessPolicyRequest request =
+   *       UpdateAccessPolicyRequest.newBuilder()
+   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       accessPoliciesClient.updateAccessPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAccessPolicyCallable() { + return stub.updateAccessPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   AccessPolicyName name =
+   *       AccessPolicyName.ofProjectLocationAccessPolicyName(
+   *           "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]");
+   *   accessPoliciesClient.deleteAccessPolicyAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the access policy to delete. + *

Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAccessPolicyAsync( + @Nullable AccessPolicyName name) { + DeleteAccessPolicyRequest request = + DeleteAccessPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   String name =
+   *       AccessPolicyName.ofOrganizationLocationAccessPolicyName(
+   *               "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
+   *           .toString();
+   *   accessPoliciesClient.deleteAccessPolicyAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the access policy to delete. + *

Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAccessPolicyAsync(String name) { + DeleteAccessPolicyRequest request = + DeleteAccessPolicyRequest.newBuilder().setName(name).build(); + return deleteAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   DeleteAccessPolicyRequest request =
+   *       DeleteAccessPolicyRequest.newBuilder()
+   *           .setName(
+   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
+   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   accessPoliciesClient.deleteAccessPolicyAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAccessPolicyAsync( + DeleteAccessPolicyRequest request) { + return deleteAccessPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   DeleteAccessPolicyRequest request =
+   *       DeleteAccessPolicyRequest.newBuilder()
+   *           .setName(
+   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
+   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       accessPoliciesClient.deleteAccessPolicyOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteAccessPolicyOperationCallable() { + return stub.deleteAccessPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   DeleteAccessPolicyRequest request =
+   *       DeleteAccessPolicyRequest.newBuilder()
+   *           .setName(
+   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
+   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
+   *                   .toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       accessPoliciesClient.deleteAccessPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteAccessPolicyCallable() { + return stub.deleteAccessPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
+   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource, which owns the collection of access policy + * resources. + *

Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessPoliciesPagedResponse listAccessPolicies( + @Nullable FolderLocationName parent) { + ListAccessPoliciesRequest request = + ListAccessPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource, which owns the collection of access policy + * resources. + *

Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessPoliciesPagedResponse listAccessPolicies(@Nullable LocationName parent) { + ListAccessPoliciesRequest request = + ListAccessPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
+   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource, which owns the collection of access policy + * resources. + *

Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessPoliciesPagedResponse listAccessPolicies( + @Nullable OrganizationLocationName parent) { + ListAccessPoliciesRequest request = + ListAccessPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
+   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource, which owns the collection of access policy + * resources. + *

Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessPoliciesPagedResponse listAccessPolicies(String parent) { + ListAccessPoliciesRequest request = + ListAccessPoliciesRequest.newBuilder().setParent(parent).build(); + return listAccessPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   ListAccessPoliciesRequest request =
+   *       ListAccessPoliciesRequest.newBuilder()
+   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(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 ListAccessPoliciesPagedResponse listAccessPolicies( + ListAccessPoliciesRequest request) { + return listAccessPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   ListAccessPoliciesRequest request =
+   *       ListAccessPoliciesRequest.newBuilder()
+   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListAccessPoliciesResponse response =
+   *         accessPoliciesClient.listAccessPoliciesCallable().call(request);
+   *     for (AccessPolicy element : response.getAccessPoliciesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAccessPoliciesCallable() { + return stub.listAccessPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   AccessPolicyName name =
+   *       AccessPolicyName.ofOrganizationLocationAccessPolicyName(
+   *           "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
+   *   for (PolicyBinding element :
+   *       accessPoliciesClient.searchAccessPolicyBindings(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the access policy. Format: + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAccessPolicyBindingsPagedResponse searchAccessPolicyBindings( + @Nullable AccessPolicyName name) { + SearchAccessPolicyBindingsRequest request = + SearchAccessPolicyBindingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return searchAccessPolicyBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   String name =
+   *       AccessPolicyName.ofOrganizationLocationAccessPolicyName(
+   *               "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
+   *           .toString();
+   *   for (PolicyBinding element :
+   *       accessPoliciesClient.searchAccessPolicyBindings(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the access policy. Format: + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAccessPolicyBindingsPagedResponse searchAccessPolicyBindings(String name) { + SearchAccessPolicyBindingsRequest request = + SearchAccessPolicyBindingsRequest.newBuilder().setName(name).build(); + return searchAccessPolicyBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   SearchAccessPolicyBindingsRequest request =
+   *       SearchAccessPolicyBindingsRequest.newBuilder()
+   *           .setName(
+   *               AccessPolicyName.ofOrganizationLocationAccessPolicyName(
+   *                       "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (PolicyBinding element :
+   *       accessPoliciesClient.searchAccessPolicyBindings(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 SearchAccessPolicyBindingsPagedResponse searchAccessPolicyBindings( + SearchAccessPolicyBindingsRequest request) { + return searchAccessPolicyBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   SearchAccessPolicyBindingsRequest request =
+   *       SearchAccessPolicyBindingsRequest.newBuilder()
+   *           .setName(
+   *               AccessPolicyName.ofOrganizationLocationAccessPolicyName(
+   *                       "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       accessPoliciesClient.searchAccessPolicyBindingsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PolicyBinding element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsPagedCallable() { + return stub.searchAccessPolicyBindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
+   *   SearchAccessPolicyBindingsRequest request =
+   *       SearchAccessPolicyBindingsRequest.newBuilder()
+   *           .setName(
+   *               AccessPolicyName.ofOrganizationLocationAccessPolicyName(
+   *                       "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchAccessPolicyBindingsResponse response =
+   *         accessPoliciesClient.searchAccessPolicyBindingsCallable().call(request);
+   *     for (PolicyBinding element : response.getPolicyBindingsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchAccessPolicyBindingsCallable() { + return stub.searchAccessPolicyBindingsCallable(); + } + + @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 ListAccessPoliciesPagedResponse + extends AbstractPagedListResponse< + ListAccessPoliciesRequest, + ListAccessPoliciesResponse, + AccessPolicy, + ListAccessPoliciesPage, + ListAccessPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAccessPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAccessPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAccessPoliciesPagedResponse(ListAccessPoliciesPage page) { + super(page, ListAccessPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAccessPoliciesPage + extends AbstractPage< + ListAccessPoliciesRequest, + ListAccessPoliciesResponse, + AccessPolicy, + ListAccessPoliciesPage> { + + private ListAccessPoliciesPage( + @Nullable PageContext + context, + @Nullable ListAccessPoliciesResponse response) { + super(context, response); + } + + private static ListAccessPoliciesPage createEmptyPage() { + return new ListAccessPoliciesPage(null, null); + } + + @Override + protected ListAccessPoliciesPage createPage( + @Nullable PageContext + context, + @Nullable ListAccessPoliciesResponse response) { + return new ListAccessPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAccessPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAccessPoliciesRequest, + ListAccessPoliciesResponse, + AccessPolicy, + ListAccessPoliciesPage, + ListAccessPoliciesFixedSizeCollection> { + + private ListAccessPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAccessPoliciesFixedSizeCollection createEmptyCollection() { + return new ListAccessPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListAccessPoliciesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAccessPoliciesFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchAccessPolicyBindingsPagedResponse + extends AbstractPagedListResponse< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding, + SearchAccessPolicyBindingsPage, + SearchAccessPolicyBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchAccessPolicyBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchAccessPolicyBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchAccessPolicyBindingsPagedResponse(SearchAccessPolicyBindingsPage page) { + super(page, SearchAccessPolicyBindingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchAccessPolicyBindingsPage + extends AbstractPage< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding, + SearchAccessPolicyBindingsPage> { + + private SearchAccessPolicyBindingsPage( + @Nullable + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + context, + @Nullable SearchAccessPolicyBindingsResponse response) { + super(context, response); + } + + private static SearchAccessPolicyBindingsPage createEmptyPage() { + return new SearchAccessPolicyBindingsPage(null, null); + } + + @Override + protected SearchAccessPolicyBindingsPage createPage( + @Nullable + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + context, + @Nullable SearchAccessPolicyBindingsResponse response) { + return new SearchAccessPolicyBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchAccessPolicyBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding, + SearchAccessPolicyBindingsPage, + SearchAccessPolicyBindingsFixedSizeCollection> { + + private SearchAccessPolicyBindingsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchAccessPolicyBindingsFixedSizeCollection createEmptyCollection() { + return new SearchAccessPolicyBindingsFixedSizeCollection(null, 0); + } + + @Override + protected SearchAccessPolicyBindingsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new SearchAccessPolicyBindingsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/AccessPoliciesSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/AccessPoliciesSettings.java new file mode 100644 index 000000000000..96205ee4d235 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/AccessPoliciesSettings.java @@ -0,0 +1,353 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3; + +import static com.google.iam.v3.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.iam.v3.stub.AccessPoliciesStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AccessPoliciesClient}. + * + *

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

    + *
  • The default service address (iam.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAccessPolicy: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AccessPoliciesSettings.Builder accessPoliciesSettingsBuilder =
+ *     AccessPoliciesSettings.newBuilder();
+ * accessPoliciesSettingsBuilder
+ *     .getAccessPolicySettings()
+ *     .setRetrySettings(
+ *         accessPoliciesSettingsBuilder
+ *             .getAccessPolicySettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AccessPoliciesSettings accessPoliciesSettings = accessPoliciesSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createAccessPolicy: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AccessPoliciesSettings.Builder accessPoliciesSettingsBuilder =
+ *     AccessPoliciesSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * accessPoliciesSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +public class AccessPoliciesSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createAccessPolicy. */ + public UnaryCallSettings createAccessPolicySettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).createAccessPolicySettings(); + } + + /** Returns the object with the settings used for calls to createAccessPolicy. */ + public OperationCallSettings + createAccessPolicyOperationSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).createAccessPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to getAccessPolicy. */ + public UnaryCallSettings getAccessPolicySettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).getAccessPolicySettings(); + } + + /** Returns the object with the settings used for calls to updateAccessPolicy. */ + public UnaryCallSettings updateAccessPolicySettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).updateAccessPolicySettings(); + } + + /** Returns the object with the settings used for calls to updateAccessPolicy. */ + public OperationCallSettings + updateAccessPolicyOperationSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).updateAccessPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAccessPolicy. */ + public UnaryCallSettings deleteAccessPolicySettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).deleteAccessPolicySettings(); + } + + /** Returns the object with the settings used for calls to deleteAccessPolicy. */ + public OperationCallSettings + deleteAccessPolicyOperationSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).deleteAccessPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to listAccessPolicies. */ + public PagedCallSettings< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).listAccessPoliciesSettings(); + } + + /** Returns the object with the settings used for calls to searchAccessPolicyBindings. */ + public PagedCallSettings< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).searchAccessPolicyBindingsSettings(); + } + + public static final AccessPoliciesSettings create(AccessPoliciesStubSettings stub) + throws IOException { + return new AccessPoliciesSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AccessPoliciesStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AccessPoliciesStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AccessPoliciesStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AccessPoliciesStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AccessPoliciesStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AccessPoliciesStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AccessPoliciesStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AccessPoliciesStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable 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 AccessPoliciesSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AccessPoliciesSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(AccessPoliciesStubSettings.newBuilder(clientContext)); + } + + protected Builder(AccessPoliciesSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AccessPoliciesStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AccessPoliciesStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AccessPoliciesStubSettings.newHttpJsonBuilder()); + } + + public AccessPoliciesStubSettings.Builder getStubSettingsBuilder() { + return ((AccessPoliciesStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createAccessPolicy. */ + public UnaryCallSettings.Builder + createAccessPolicySettings() { + return getStubSettingsBuilder().createAccessPolicySettings(); + } + + /** Returns the builder for the settings used for calls to createAccessPolicy. */ + public OperationCallSettings.Builder + createAccessPolicyOperationSettings() { + return getStubSettingsBuilder().createAccessPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getAccessPolicy. */ + public UnaryCallSettings.Builder + getAccessPolicySettings() { + return getStubSettingsBuilder().getAccessPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updateAccessPolicy. */ + public UnaryCallSettings.Builder + updateAccessPolicySettings() { + return getStubSettingsBuilder().updateAccessPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updateAccessPolicy. */ + public OperationCallSettings.Builder + updateAccessPolicyOperationSettings() { + return getStubSettingsBuilder().updateAccessPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAccessPolicy. */ + public UnaryCallSettings.Builder + deleteAccessPolicySettings() { + return getStubSettingsBuilder().deleteAccessPolicySettings(); + } + + /** Returns the builder for the settings used for calls to deleteAccessPolicy. */ + public OperationCallSettings.Builder + deleteAccessPolicyOperationSettings() { + return getStubSettingsBuilder().deleteAccessPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listAccessPolicies. */ + public PagedCallSettings.Builder< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings() { + return getStubSettingsBuilder().listAccessPoliciesSettings(); + } + + /** Returns the builder for the settings used for calls to searchAccessPolicyBindings. */ + public PagedCallSettings.Builder< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings() { + return getStubSettingsBuilder().searchAccessPolicyBindingsSettings(); + } + + @Override + public AccessPoliciesSettings build() throws IOException { + return new AccessPoliciesSettings(this); + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsClient.java index e7265e3fb20c..62ffe219d797 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsClient.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/PolicyBindingsClient.java @@ -75,7 +75,7 @@ * * *

CreatePolicyBinding - *

Creates a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. Once the binding is created, the policy is applied to the target. + *

Creates a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. After the binding is created, the policy is applied to the target. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -116,7 +116,7 @@ * * *

    UpdatePolicyBinding - *

    Updates a policy binding and returns a long-running operation. Callers will need the IAM permissions on the policy and target in the binding to update, and the IAM permission to remove the existing policy from the binding. Target is immutable and cannot be updated. Once the binding is updated, the new policy is applied to the target. + *

    Updates a policy binding and returns a long-running operation. Callers will need the IAM permissions on the policy and target in the binding to update. Target and policy are immutable and cannot be updated. * *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      @@ -135,7 +135,7 @@ * * *

      DeletePolicyBinding - *

      Deletes a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. Once the binding is deleted, the policy no longer applies to the target. + *

      Deletes a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. After the binding is deleted, the policy no longer applies to the target. * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -331,7 +331,7 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

        Sample code: @@ -385,7 +385,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

        Sample code: @@ -439,7 +439,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

        Sample code: @@ -495,7 +495,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

        Sample code: @@ -549,7 +549,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

        Sample code: @@ -583,7 +583,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

        Sample code: @@ -617,7 +617,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

        Sample code: @@ -786,9 +786,8 @@ public final UnaryCallable getPolicyBind // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on the policy and target in the binding to update, and the IAM permission to remove - * the existing policy from the binding. Target is immutable and cannot be updated. Once the - * binding is updated, the new policy is applied to the target. + * permissions on the policy and target in the binding to update. Target and policy are immutable + * and cannot be updated. * *

        Sample code: * @@ -824,9 +823,8 @@ public final OperationFuture updatePolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on the policy and target in the binding to update, and the IAM permission to remove - * the existing policy from the binding. Target is immutable and cannot be updated. Once the - * binding is updated, the new policy is applied to the target. + * permissions on the policy and target in the binding to update. Target and policy are immutable + * and cannot be updated. * *

        Sample code: * @@ -858,9 +856,8 @@ public final OperationFuture updatePolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on the policy and target in the binding to update, and the IAM permission to remove - * the existing policy from the binding. Target is immutable and cannot be updated. Once the - * binding is updated, the new policy is applied to the target. + * permissions on the policy and target in the binding to update. Target and policy are immutable + * and cannot be updated. * *

        Sample code: * @@ -892,9 +889,8 @@ public final OperationFuture updatePolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on the policy and target in the binding to update, and the IAM permission to remove - * the existing policy from the binding. Target is immutable and cannot be updated. Once the - * binding is updated, the new policy is applied to the target. + * permissions on the policy and target in the binding to update. Target and policy are immutable + * and cannot be updated. * *

        Sample code: * @@ -925,7 +921,7 @@ public final UnaryCallable updatePolicyBi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

        Sample code: @@ -967,7 +963,7 @@ public final OperationFuture deletePolicyBindingAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

        Sample code: @@ -1007,7 +1003,7 @@ public final OperationFuture deletePolicyBindingAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

        Sample code: @@ -1043,7 +1039,7 @@ public final OperationFuture deletePolicyBindingAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

        Sample code: @@ -1079,7 +1075,7 @@ public final OperationFuture deletePolicyBindingAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

        Sample code: @@ -1612,6 +1608,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") * .build(); * for (PolicyBinding element : * policyBindingsClient.searchTargetPolicyBindings(request).iterateAll()) { @@ -1647,6 +1644,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") * .build(); * ApiFuture future = * policyBindingsClient.searchTargetPolicyBindingsPagedCallable().futureCall(request); @@ -1682,6 +1680,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") * .build(); * while (true) { * SearchTargetPolicyBindingsResponse response = diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/gapic_metadata.json b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/gapic_metadata.json index 5c741122324a..7ac308147fc0 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/gapic_metadata.json +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/gapic_metadata.json @@ -5,6 +5,33 @@ "protoPackage": "google.iam.v3", "libraryPackage": "com.google.iam.v3", "services": { + "AccessPolicies": { + "clients": { + "grpc": { + "libraryClient": "AccessPoliciesClient", + "rpcs": { + "CreateAccessPolicy": { + "methods": ["createAccessPolicyAsync", "createAccessPolicyAsync", "createAccessPolicyAsync", "createAccessPolicyAsync", "createAccessPolicyAsync", "createAccessPolicyOperationCallable", "createAccessPolicyCallable"] + }, + "DeleteAccessPolicy": { + "methods": ["deleteAccessPolicyAsync", "deleteAccessPolicyAsync", "deleteAccessPolicyAsync", "deleteAccessPolicyOperationCallable", "deleteAccessPolicyCallable"] + }, + "GetAccessPolicy": { + "methods": ["getAccessPolicy", "getAccessPolicy", "getAccessPolicy", "getAccessPolicyCallable"] + }, + "ListAccessPolicies": { + "methods": ["listAccessPolicies", "listAccessPolicies", "listAccessPolicies", "listAccessPolicies", "listAccessPolicies", "listAccessPoliciesPagedCallable", "listAccessPoliciesCallable"] + }, + "SearchAccessPolicyBindings": { + "methods": ["searchAccessPolicyBindings", "searchAccessPolicyBindings", "searchAccessPolicyBindings", "searchAccessPolicyBindingsPagedCallable", "searchAccessPolicyBindingsCallable"] + }, + "UpdateAccessPolicy": { + "methods": ["updateAccessPolicyAsync", "updateAccessPolicyOperationCallable", "updateAccessPolicyCallable"] + } + } + } + } + }, "PolicyBindings": { "clients": { "grpc": { diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/package-info.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/package-info.java index f41d7c28c888..f38e16ed0b5c 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/package-info.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/package-info.java @@ -19,6 +19,26 @@ * *

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

        ======================= AccessPoliciesClient ======================= + * + *

        Service Description: Manages Identity and Access Management (IAM) access policies. + * + *

        Sample for AccessPoliciesClient: + * + *

        {@code
        + * // This snippet has been automatically generated and should be regarded as a code template only.
        + * // It will require modifications to work:
        + * // - It may require correct/in-range values for request initialization.
        + * // - It may require specifying regional endpoints when creating the service client as shown in
        + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        + * try (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
        + *   AccessPolicyName name =
        + *       AccessPolicyName.ofProjectLocationAccessPolicyName(
        + *           "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]");
        + *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(name);
        + * }
        + * }
        + * *

        ======================= PolicyBindingsClient ======================= * *

        Service Description: An interface for managing Identity and Access Management (IAM) policy diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/AccessPoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/AccessPoliciesStub.java new file mode 100644 index 000000000000..c8897be0b2f9 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/AccessPoliciesStub.java @@ -0,0 +1,119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3.stub; + +import static com.google.iam.v3.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v3.AccessPolicy; +import com.google.iam.v3.CreateAccessPolicyRequest; +import com.google.iam.v3.DeleteAccessPolicyRequest; +import com.google.iam.v3.GetAccessPolicyRequest; +import com.google.iam.v3.ListAccessPoliciesRequest; +import com.google.iam.v3.ListAccessPoliciesResponse; +import com.google.iam.v3.OperationMetadata; +import com.google.iam.v3.SearchAccessPolicyBindingsRequest; +import com.google.iam.v3.SearchAccessPolicyBindingsResponse; +import com.google.iam.v3.UpdateAccessPolicyRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AccessPolicies service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class AccessPoliciesStub implements BackgroundResource { + + public @Nullable OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + createAccessPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAccessPolicyOperationCallable()"); + } + + public UnaryCallable createAccessPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createAccessPolicyCallable()"); + } + + public UnaryCallable getAccessPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getAccessPolicyCallable()"); + } + + public OperationCallable + updateAccessPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAccessPolicyOperationCallable()"); + } + + public UnaryCallable updateAccessPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateAccessPolicyCallable()"); + } + + public OperationCallable + deleteAccessPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAccessPolicyOperationCallable()"); + } + + public UnaryCallable deleteAccessPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAccessPolicyCallable()"); + } + + public UnaryCallable + listAccessPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessPoliciesPagedCallable()"); + } + + public UnaryCallable + listAccessPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessPoliciesCallable()"); + } + + public UnaryCallable + searchAccessPolicyBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchAccessPolicyBindingsPagedCallable()"); + } + + public UnaryCallable + searchAccessPolicyBindingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchAccessPolicyBindingsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/AccessPoliciesStubSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/AccessPoliciesStubSettings.java new file mode 100644 index 000000000000..556e548efa7d --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/AccessPoliciesStubSettings.java @@ -0,0 +1,832 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3.stub; + +import static com.google.iam.v3.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +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.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +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.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +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.iam.v3.AccessPolicy; +import com.google.iam.v3.CreateAccessPolicyRequest; +import com.google.iam.v3.DeleteAccessPolicyRequest; +import com.google.iam.v3.GetAccessPolicyRequest; +import com.google.iam.v3.ListAccessPoliciesRequest; +import com.google.iam.v3.ListAccessPoliciesResponse; +import com.google.iam.v3.OperationMetadata; +import com.google.iam.v3.PolicyBinding; +import com.google.iam.v3.SearchAccessPolicyBindingsRequest; +import com.google.iam.v3.SearchAccessPolicyBindingsResponse; +import com.google.iam.v3.UpdateAccessPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AccessPoliciesStub}. + * + *

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

          + *
        • The default service address (iam.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAccessPolicy: + * + *

        {@code
        + * // This snippet has been automatically generated and should be regarded as a code template only.
        + * // It will require modifications to work:
        + * // - It may require correct/in-range values for request initialization.
        + * // - It may require specifying regional endpoints when creating the service client as shown in
        + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        + * AccessPoliciesStubSettings.Builder accessPoliciesSettingsBuilder =
        + *     AccessPoliciesStubSettings.newBuilder();
        + * accessPoliciesSettingsBuilder
        + *     .getAccessPolicySettings()
        + *     .setRetrySettings(
        + *         accessPoliciesSettingsBuilder
        + *             .getAccessPolicySettings()
        + *             .getRetrySettings()
        + *             .toBuilder()
        + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
        + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
        + *             .setMaxAttempts(5)
        + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
        + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
        + *             .setRetryDelayMultiplier(1.3)
        + *             .setRpcTimeoutMultiplier(1.5)
        + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
        + *             .build());
        + * AccessPoliciesStubSettings accessPoliciesSettings = accessPoliciesSettingsBuilder.build();
        + * }
        + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

        To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createAccessPolicy: + * + *

        {@code
        + * // This snippet has been automatically generated and should be regarded as a code template only.
        + * // It will require modifications to work:
        + * // - It may require correct/in-range values for request initialization.
        + * // - It may require specifying regional endpoints when creating the service client as shown in
        + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        + * AccessPoliciesStubSettings.Builder accessPoliciesSettingsBuilder =
        + *     AccessPoliciesStubSettings.newBuilder();
        + * TimedRetryAlgorithm timedRetryAlgorithm =
        + *     OperationalTimedPollAlgorithm.create(
        + *         RetrySettings.newBuilder()
        + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
        + *             .setRetryDelayMultiplier(1.5)
        + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
        + *             .setTotalTimeoutDuration(Duration.ofHours(24))
        + *             .build());
        + * accessPoliciesSettingsBuilder
        + *     .createClusterOperationSettings()
        + *     .setPollingAlgorithm(timedRetryAlgorithm)
        + *     .build();
        + * }
        + */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class AccessPoliciesStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createAccessPolicySettings; + private final OperationCallSettings + createAccessPolicyOperationSettings; + private final UnaryCallSettings getAccessPolicySettings; + private final UnaryCallSettings updateAccessPolicySettings; + private final OperationCallSettings + updateAccessPolicyOperationSettings; + private final UnaryCallSettings deleteAccessPolicySettings; + private final OperationCallSettings + deleteAccessPolicyOperationSettings; + private final PagedCallSettings< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings; + private final PagedCallSettings< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings; + + private static final PagedListDescriptor< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, AccessPolicy> + LIST_ACCESS_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, AccessPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAccessPoliciesRequest injectToken( + ListAccessPoliciesRequest payload, String token) { + return ListAccessPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAccessPoliciesRequest injectPageSize( + ListAccessPoliciesRequest payload, int pageSize) { + return ListAccessPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAccessPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAccessPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAccessPoliciesResponse payload) { + return payload.getAccessPoliciesList(); + } + }; + + private static final PagedListDescriptor< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsResponse, PolicyBinding> + SEARCH_ACCESS_POLICY_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchAccessPolicyBindingsRequest injectToken( + SearchAccessPolicyBindingsRequest payload, String token) { + return SearchAccessPolicyBindingsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public SearchAccessPolicyBindingsRequest injectPageSize( + SearchAccessPolicyBindingsRequest payload, int pageSize) { + return SearchAccessPolicyBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(SearchAccessPolicyBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchAccessPolicyBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchAccessPolicyBindingsResponse payload) { + return payload.getPolicyBindingsList(); + } + }; + + private static final PagedListResponseFactory< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + LIST_ACCESS_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAccessPoliciesRequest, + ListAccessPoliciesResponse, + ListAccessPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAccessPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ACCESS_POLICIES_PAGE_STR_DESC, request, context); + return ListAccessPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + SEARCH_ACCESS_POLICY_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + SearchAccessPolicyBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + pageContext = + PageContext.create( + callable, SEARCH_ACCESS_POLICY_BINDINGS_PAGE_STR_DESC, request, context); + return SearchAccessPolicyBindingsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createAccessPolicy. */ + public UnaryCallSettings createAccessPolicySettings() { + return createAccessPolicySettings; + } + + /** Returns the object with the settings used for calls to createAccessPolicy. */ + public OperationCallSettings + createAccessPolicyOperationSettings() { + return createAccessPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to getAccessPolicy. */ + public UnaryCallSettings getAccessPolicySettings() { + return getAccessPolicySettings; + } + + /** Returns the object with the settings used for calls to updateAccessPolicy. */ + public UnaryCallSettings updateAccessPolicySettings() { + return updateAccessPolicySettings; + } + + /** Returns the object with the settings used for calls to updateAccessPolicy. */ + public OperationCallSettings + updateAccessPolicyOperationSettings() { + return updateAccessPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAccessPolicy. */ + public UnaryCallSettings deleteAccessPolicySettings() { + return deleteAccessPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteAccessPolicy. */ + public OperationCallSettings + deleteAccessPolicyOperationSettings() { + return deleteAccessPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to listAccessPolicies. */ + public PagedCallSettings< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings() { + return listAccessPoliciesSettings; + } + + /** Returns the object with the settings used for calls to searchAccessPolicyBindings. */ + public PagedCallSettings< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings() { + return searchAccessPolicyBindingsSettings; + } + + public AccessPoliciesStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAccessPoliciesStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAccessPoliciesStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "iam"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "iam.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "iam.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AccessPoliciesStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AccessPoliciesStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AccessPoliciesStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable 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 AccessPoliciesStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createAccessPolicySettings = settingsBuilder.createAccessPolicySettings().build(); + createAccessPolicyOperationSettings = + settingsBuilder.createAccessPolicyOperationSettings().build(); + getAccessPolicySettings = settingsBuilder.getAccessPolicySettings().build(); + updateAccessPolicySettings = settingsBuilder.updateAccessPolicySettings().build(); + updateAccessPolicyOperationSettings = + settingsBuilder.updateAccessPolicyOperationSettings().build(); + deleteAccessPolicySettings = settingsBuilder.deleteAccessPolicySettings().build(); + deleteAccessPolicyOperationSettings = + settingsBuilder.deleteAccessPolicyOperationSettings().build(); + listAccessPoliciesSettings = settingsBuilder.listAccessPoliciesSettings().build(); + searchAccessPolicyBindingsSettings = + settingsBuilder.searchAccessPolicyBindingsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-iam-policy") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for AccessPoliciesStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createAccessPolicySettings; + private final OperationCallSettings.Builder< + CreateAccessPolicyRequest, AccessPolicy, OperationMetadata> + createAccessPolicyOperationSettings; + private final UnaryCallSettings.Builder + getAccessPolicySettings; + private final UnaryCallSettings.Builder + updateAccessPolicySettings; + private final OperationCallSettings.Builder< + UpdateAccessPolicyRequest, AccessPolicy, OperationMetadata> + updateAccessPolicyOperationSettings; + private final UnaryCallSettings.Builder + deleteAccessPolicySettings; + private final OperationCallSettings.Builder + deleteAccessPolicyOperationSettings; + private final PagedCallSettings.Builder< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings; + private final PagedCallSettings.Builder< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setTotalTimeoutDuration(Duration.ofMillis(30000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + createAccessPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAccessPolicyOperationSettings = OperationCallSettings.newBuilder(); + getAccessPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAccessPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAccessPolicyOperationSettings = OperationCallSettings.newBuilder(); + deleteAccessPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAccessPolicyOperationSettings = OperationCallSettings.newBuilder(); + listAccessPoliciesSettings = PagedCallSettings.newBuilder(LIST_ACCESS_POLICIES_PAGE_STR_FACT); + searchAccessPolicyBindingsSettings = + PagedCallSettings.newBuilder(SEARCH_ACCESS_POLICY_BINDINGS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAccessPolicySettings, + getAccessPolicySettings, + updateAccessPolicySettings, + deleteAccessPolicySettings, + listAccessPoliciesSettings, + searchAccessPolicyBindingsSettings); + initDefaults(this); + } + + protected Builder(AccessPoliciesStubSettings settings) { + super(settings); + + createAccessPolicySettings = settings.createAccessPolicySettings.toBuilder(); + createAccessPolicyOperationSettings = + settings.createAccessPolicyOperationSettings.toBuilder(); + getAccessPolicySettings = settings.getAccessPolicySettings.toBuilder(); + updateAccessPolicySettings = settings.updateAccessPolicySettings.toBuilder(); + updateAccessPolicyOperationSettings = + settings.updateAccessPolicyOperationSettings.toBuilder(); + deleteAccessPolicySettings = settings.deleteAccessPolicySettings.toBuilder(); + deleteAccessPolicyOperationSettings = + settings.deleteAccessPolicyOperationSettings.toBuilder(); + listAccessPoliciesSettings = settings.listAccessPoliciesSettings.toBuilder(); + searchAccessPolicyBindingsSettings = settings.searchAccessPolicyBindingsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAccessPolicySettings, + getAccessPolicySettings, + updateAccessPolicySettings, + deleteAccessPolicySettings, + listAccessPoliciesSettings, + searchAccessPolicyBindingsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createAccessPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getAccessPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAccessPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteAccessPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listAccessPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .searchAccessPolicyBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAccessPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AccessPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateAccessPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AccessPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteAccessPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

        Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createAccessPolicy. */ + public UnaryCallSettings.Builder + createAccessPolicySettings() { + return createAccessPolicySettings; + } + + /** Returns the builder for the settings used for calls to createAccessPolicy. */ + public OperationCallSettings.Builder + createAccessPolicyOperationSettings() { + return createAccessPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to getAccessPolicy. */ + public UnaryCallSettings.Builder + getAccessPolicySettings() { + return getAccessPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateAccessPolicy. */ + public UnaryCallSettings.Builder + updateAccessPolicySettings() { + return updateAccessPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateAccessPolicy. */ + public OperationCallSettings.Builder + updateAccessPolicyOperationSettings() { + return updateAccessPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAccessPolicy. */ + public UnaryCallSettings.Builder + deleteAccessPolicySettings() { + return deleteAccessPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteAccessPolicy. */ + public OperationCallSettings.Builder + deleteAccessPolicyOperationSettings() { + return deleteAccessPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to listAccessPolicies. */ + public PagedCallSettings.Builder< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings() { + return listAccessPoliciesSettings; + } + + /** Returns the builder for the settings used for calls to searchAccessPolicyBindings. */ + public PagedCallSettings.Builder< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings() { + return searchAccessPolicyBindingsSettings; + } + + @Override + public AccessPoliciesStubSettings build() throws IOException { + return new AccessPoliciesStubSettings(this); + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/GrpcAccessPoliciesCallableFactory.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/GrpcAccessPoliciesCallableFactory.java new file mode 100644 index 000000000000..8c2debc08374 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/GrpcAccessPoliciesCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AccessPolicies service API. + * + *

        This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcAccessPoliciesCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/GrpcAccessPoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/GrpcAccessPoliciesStub.java new file mode 100644 index 000000000000..247ec2d1d2ef --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/GrpcAccessPoliciesStub.java @@ -0,0 +1,425 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3.stub; + +import static com.google.iam.v3.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +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.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v3.AccessPolicy; +import com.google.iam.v3.CreateAccessPolicyRequest; +import com.google.iam.v3.DeleteAccessPolicyRequest; +import com.google.iam.v3.GetAccessPolicyRequest; +import com.google.iam.v3.ListAccessPoliciesRequest; +import com.google.iam.v3.ListAccessPoliciesResponse; +import com.google.iam.v3.OperationMetadata; +import com.google.iam.v3.SearchAccessPolicyBindingsRequest; +import com.google.iam.v3.SearchAccessPolicyBindingsResponse; +import com.google.iam.v3.UpdateAccessPolicyRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AccessPolicies service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcAccessPoliciesStub extends AccessPoliciesStub { + private static final MethodDescriptor + createAccessPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3.AccessPolicies/CreateAccessPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAccessPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3.AccessPolicies/GetAccessPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAccessPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3.AccessPolicies/UpdateAccessPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAccessPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3.AccessPolicies/DeleteAccessPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAccessPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3.AccessPolicies/ListAccessPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAccessPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccessPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsResponse> + searchAccessPolicyBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3.AccessPolicies/SearchAccessPolicyBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchAccessPolicyBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchAccessPolicyBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable createAccessPolicyCallable; + private final OperationCallable + createAccessPolicyOperationCallable; + private final UnaryCallable getAccessPolicyCallable; + private final UnaryCallable updateAccessPolicyCallable; + private final OperationCallable + updateAccessPolicyOperationCallable; + private final UnaryCallable deleteAccessPolicyCallable; + private final OperationCallable + deleteAccessPolicyOperationCallable; + private final UnaryCallable + listAccessPoliciesCallable; + private final UnaryCallable + listAccessPoliciesPagedCallable; + private final UnaryCallable + searchAccessPolicyBindingsCallable; + private final UnaryCallable< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAccessPoliciesStub create(AccessPoliciesStubSettings settings) + throws IOException { + return new GrpcAccessPoliciesStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAccessPoliciesStub create(ClientContext clientContext) + throws IOException { + return new GrpcAccessPoliciesStub( + AccessPoliciesStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAccessPoliciesStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAccessPoliciesStub( + AccessPoliciesStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAccessPoliciesStub, 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 GrpcAccessPoliciesStub(AccessPoliciesStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcAccessPoliciesCallableFactory()); + } + + /** + * Constructs an instance of GrpcAccessPoliciesStub, 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 GrpcAccessPoliciesStub( + AccessPoliciesStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createAccessPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAccessPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAccessPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAccessPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateAccessPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAccessPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "access_policy.name", String.valueOf(request.getAccessPolicy().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAccessPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAccessPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAccessPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccessPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + searchAccessPolicyBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchAccessPolicyBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.createAccessPolicyCallable = + callableFactory.createUnaryCallable( + createAccessPolicyTransportSettings, + settings.createAccessPolicySettings(), + clientContext); + this.createAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + createAccessPolicyTransportSettings, + settings.createAccessPolicyOperationSettings(), + clientContext, + operationsStub); + this.getAccessPolicyCallable = + callableFactory.createUnaryCallable( + getAccessPolicyTransportSettings, settings.getAccessPolicySettings(), clientContext); + this.updateAccessPolicyCallable = + callableFactory.createUnaryCallable( + updateAccessPolicyTransportSettings, + settings.updateAccessPolicySettings(), + clientContext); + this.updateAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAccessPolicyTransportSettings, + settings.updateAccessPolicyOperationSettings(), + clientContext, + operationsStub); + this.deleteAccessPolicyCallable = + callableFactory.createUnaryCallable( + deleteAccessPolicyTransportSettings, + settings.deleteAccessPolicySettings(), + clientContext); + this.deleteAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAccessPolicyTransportSettings, + settings.deleteAccessPolicyOperationSettings(), + clientContext, + operationsStub); + this.listAccessPoliciesCallable = + callableFactory.createUnaryCallable( + listAccessPoliciesTransportSettings, + settings.listAccessPoliciesSettings(), + clientContext); + this.listAccessPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAccessPoliciesTransportSettings, + settings.listAccessPoliciesSettings(), + clientContext); + this.searchAccessPolicyBindingsCallable = + callableFactory.createUnaryCallable( + searchAccessPolicyBindingsTransportSettings, + settings.searchAccessPolicyBindingsSettings(), + clientContext); + this.searchAccessPolicyBindingsPagedCallable = + callableFactory.createPagedCallable( + searchAccessPolicyBindingsTransportSettings, + settings.searchAccessPolicyBindingsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createAccessPolicyCallable() { + return createAccessPolicyCallable; + } + + @Override + public OperationCallable + createAccessPolicyOperationCallable() { + return createAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable getAccessPolicyCallable() { + return getAccessPolicyCallable; + } + + @Override + public UnaryCallable updateAccessPolicyCallable() { + return updateAccessPolicyCallable; + } + + @Override + public OperationCallable + updateAccessPolicyOperationCallable() { + return updateAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable deleteAccessPolicyCallable() { + return deleteAccessPolicyCallable; + } + + @Override + public OperationCallable + deleteAccessPolicyOperationCallable() { + return deleteAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable + listAccessPoliciesCallable() { + return listAccessPoliciesCallable; + } + + @Override + public UnaryCallable + listAccessPoliciesPagedCallable() { + return listAccessPoliciesPagedCallable; + } + + @Override + public UnaryCallable + searchAccessPolicyBindingsCallable() { + return searchAccessPolicyBindingsCallable; + } + + @Override + public UnaryCallable + searchAccessPolicyBindingsPagedCallable() { + return searchAccessPolicyBindingsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonAccessPoliciesCallableFactory.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonAccessPoliciesCallableFactory.java new file mode 100644 index 000000000000..3195c0c9cf66 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonAccessPoliciesCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AccessPolicies service API. + * + *

        This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonAccessPoliciesCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonAccessPoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonAccessPoliciesStub.java new file mode 100644 index 000000000000..d83ea6979406 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonAccessPoliciesStub.java @@ -0,0 +1,664 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3.stub; + +import static com.google.iam.v3.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v3.AccessPolicy; +import com.google.iam.v3.CreateAccessPolicyRequest; +import com.google.iam.v3.DeleteAccessPolicyRequest; +import com.google.iam.v3.GetAccessPolicyRequest; +import com.google.iam.v3.ListAccessPoliciesRequest; +import com.google.iam.v3.ListAccessPoliciesResponse; +import com.google.iam.v3.OperationMetadata; +import com.google.iam.v3.SearchAccessPolicyBindingsRequest; +import com.google.iam.v3.SearchAccessPolicyBindingsResponse; +import com.google.iam.v3.UpdateAccessPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AccessPolicies service API. + * + *

        This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonAccessPoliciesStub extends AccessPoliciesStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(AccessPolicy.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createAccessPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3.AccessPolicies/CreateAccessPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}/accessPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v3/{parent=folders/*/locations/*}/accessPolicies", + "/v3/{parent=organizations/*/locations/*}/accessPolicies") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "accessPolicyId", request.getAccessPolicyId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("accessPolicy", request.getAccessPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAccessPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getAccessPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3.AccessPolicies/GetAccessPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{name=projects/*/locations/*/accessPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v3/{name=folders/*/locations/*/accessPolicies/*}", + "/v3/{name=organizations/*/locations/*/accessPolicies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAccessPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3.AccessPolicies/UpdateAccessPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{accessPolicy.name=projects/*/locations/*/accessPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "accessPolicy.name", request.getAccessPolicy().getName()); + return fields; + }) + .setAdditionalPaths( + "/v3/{accessPolicy.name=folders/*/locations/*/accessPolicies/*}", + "/v3/{accessPolicy.name=organizations/*/locations/*/accessPolicies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("accessPolicy", request.getAccessPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAccessPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteAccessPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3.AccessPolicies/DeleteAccessPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{name=projects/*/locations/*/accessPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v3/{name=folders/*/locations/*/accessPolicies/*}", + "/v3/{name=organizations/*/locations/*/accessPolicies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAccessPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listAccessPoliciesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3.AccessPolicies/ListAccessPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{parent=projects/*/locations/*}/accessPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v3/{parent=folders/*/locations/*}/accessPolicies", + "/v3/{parent=organizations/*/locations/*}/accessPolicies") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAccessPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsResponse> + searchAccessPolicyBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.iam.v3.AccessPolicies/SearchAccessPolicyBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3/{name=organizations/*/locations/*/accessPolicies/*}:searchPolicyBindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v3/{name=folders/*/locations/*/accessPolicies/*}:searchPolicyBindings", + "/v3/{name=projects/*/locations/*/accessPolicies/*}:searchPolicyBindings") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchAccessPolicyBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createAccessPolicyCallable; + private final OperationCallable + createAccessPolicyOperationCallable; + private final UnaryCallable getAccessPolicyCallable; + private final UnaryCallable updateAccessPolicyCallable; + private final OperationCallable + updateAccessPolicyOperationCallable; + private final UnaryCallable deleteAccessPolicyCallable; + private final OperationCallable + deleteAccessPolicyOperationCallable; + private final UnaryCallable + listAccessPoliciesCallable; + private final UnaryCallable + listAccessPoliciesPagedCallable; + private final UnaryCallable + searchAccessPolicyBindingsCallable; + private final UnaryCallable< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAccessPoliciesStub create(AccessPoliciesStubSettings settings) + throws IOException { + return new HttpJsonAccessPoliciesStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAccessPoliciesStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAccessPoliciesStub( + AccessPoliciesStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAccessPoliciesStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAccessPoliciesStub( + AccessPoliciesStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAccessPoliciesStub, 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 HttpJsonAccessPoliciesStub( + AccessPoliciesStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAccessPoliciesCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAccessPoliciesStub, 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 HttpJsonAccessPoliciesStub( + AccessPoliciesStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v3/{name=projects/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v3/{name=folders/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v3/{name=organizations/*/locations/*/operations/*}") + .build()) + .build()) + .build()); + + HttpJsonCallSettings createAccessPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAccessPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAccessPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAccessPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings updateAccessPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAccessPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "access_policy.name", String.valueOf(request.getAccessPolicy().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAccessPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAccessPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAccessPoliciesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAccessPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + searchAccessPolicyBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(searchAccessPolicyBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.createAccessPolicyCallable = + callableFactory.createUnaryCallable( + createAccessPolicyTransportSettings, + settings.createAccessPolicySettings(), + clientContext); + this.createAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + createAccessPolicyTransportSettings, + settings.createAccessPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getAccessPolicyCallable = + callableFactory.createUnaryCallable( + getAccessPolicyTransportSettings, settings.getAccessPolicySettings(), clientContext); + this.updateAccessPolicyCallable = + callableFactory.createUnaryCallable( + updateAccessPolicyTransportSettings, + settings.updateAccessPolicySettings(), + clientContext); + this.updateAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAccessPolicyTransportSettings, + settings.updateAccessPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteAccessPolicyCallable = + callableFactory.createUnaryCallable( + deleteAccessPolicyTransportSettings, + settings.deleteAccessPolicySettings(), + clientContext); + this.deleteAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAccessPolicyTransportSettings, + settings.deleteAccessPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listAccessPoliciesCallable = + callableFactory.createUnaryCallable( + listAccessPoliciesTransportSettings, + settings.listAccessPoliciesSettings(), + clientContext); + this.listAccessPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAccessPoliciesTransportSettings, + settings.listAccessPoliciesSettings(), + clientContext); + this.searchAccessPolicyBindingsCallable = + callableFactory.createUnaryCallable( + searchAccessPolicyBindingsTransportSettings, + settings.searchAccessPolicyBindingsSettings(), + clientContext); + this.searchAccessPolicyBindingsPagedCallable = + callableFactory.createPagedCallable( + searchAccessPolicyBindingsTransportSettings, + settings.searchAccessPolicyBindingsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createAccessPolicyMethodDescriptor); + methodDescriptors.add(getAccessPolicyMethodDescriptor); + methodDescriptors.add(updateAccessPolicyMethodDescriptor); + methodDescriptors.add(deleteAccessPolicyMethodDescriptor); + methodDescriptors.add(listAccessPoliciesMethodDescriptor); + methodDescriptors.add(searchAccessPolicyBindingsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createAccessPolicyCallable() { + return createAccessPolicyCallable; + } + + @Override + public OperationCallable + createAccessPolicyOperationCallable() { + return createAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable getAccessPolicyCallable() { + return getAccessPolicyCallable; + } + + @Override + public UnaryCallable updateAccessPolicyCallable() { + return updateAccessPolicyCallable; + } + + @Override + public OperationCallable + updateAccessPolicyOperationCallable() { + return updateAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable deleteAccessPolicyCallable() { + return deleteAccessPolicyCallable; + } + + @Override + public OperationCallable + deleteAccessPolicyOperationCallable() { + return deleteAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable + listAccessPoliciesCallable() { + return listAccessPoliciesCallable; + } + + @Override + public UnaryCallable + listAccessPoliciesPagedCallable() { + return listAccessPoliciesPagedCallable; + } + + @Override + public UnaryCallable + searchAccessPolicyBindingsCallable() { + return searchAccessPolicyBindingsCallable; + } + + @Override + public UnaryCallable + searchAccessPolicyBindingsPagedCallable() { + return searchAccessPolicyBindingsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonPolicyBindingsStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonPolicyBindingsStub.java index 3d1de06fc63c..9f28d261bd9a 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonPolicyBindingsStub.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/HttpJsonPolicyBindingsStub.java @@ -315,6 +315,7 @@ public class HttpJsonPolicyBindingsStub extends PolicyBindingsStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "target", request.getTarget()); diff --git a/java-iam-policy/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v3/reflect-config.json b/java-iam-policy/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v3/reflect-config.json index c847ccd9d33b..72eabdf3da68 100644 --- a/java-iam-policy/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v3/reflect-config.json +++ b/java-iam-policy/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v3/reflect-config.json @@ -593,6 +593,105 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3.AccessPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.AccessPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.AccessPolicyDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.AccessPolicyDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.AccessPolicyRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.AccessPolicyRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.AccessPolicyRule$Effect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.AccessPolicyRule$Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.AccessPolicyRule$Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.CreateAccessPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.CreateAccessPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3.CreatePolicyBindingRequest", "queryAllDeclaredConstructors": true, @@ -629,6 +728,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3.DeleteAccessPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.DeleteAccessPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3.DeletePolicyBindingRequest", "queryAllDeclaredConstructors": true, @@ -665,6 +782,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3.GetAccessPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.GetAccessPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3.GetPolicyBindingRequest", "queryAllDeclaredConstructors": true, @@ -701,6 +836,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3.ListAccessPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.ListAccessPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.ListAccessPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.ListAccessPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3.ListPolicyBindingsRequest", "queryAllDeclaredConstructors": true, @@ -899,6 +1070,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3.SearchAccessPolicyBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.SearchAccessPolicyBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.SearchAccessPolicyBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.SearchAccessPolicyBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3.SearchPrincipalAccessBoundaryPolicyBindingsRequest", "queryAllDeclaredConstructors": true, @@ -971,6 +1178,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3.UpdateAccessPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3.UpdateAccessPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3.UpdatePolicyBindingRequest", "queryAllDeclaredConstructors": true, diff --git a/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/AccessPoliciesClientHttpJsonTest.java b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/AccessPoliciesClientHttpJsonTest.java new file mode 100644 index 000000000000..177492f18f9e --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/AccessPoliciesClientHttpJsonTest.java @@ -0,0 +1,949 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3; + +import static com.google.iam.v3.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.iam.v3.stub.HttpJsonAccessPoliciesStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AccessPoliciesClientHttpJsonTest { + private static MockHttpService mockService; + private static AccessPoliciesClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAccessPoliciesStub.getMethodDescriptors(), + AccessPoliciesSettings.getDefaultEndpoint()); + AccessPoliciesSettings settings = + AccessPoliciesSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AccessPoliciesSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AccessPoliciesClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAccessPolicyTest2() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAccessPolicyTest3() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessPolicyExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAccessPolicyTest4() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessPolicyExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + + AccessPolicy actualResponse = client.getAccessPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + client.getAccessPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessPolicyTest2() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5052/locations/location-5052/accessPolicies/accessPolicie-5052"; + + AccessPolicy actualResponse = client.getAccessPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5052/locations/location-5052/accessPolicies/accessPolicie-5052"; + client.getAccessPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + UpdateAccessPolicyRequest request = + UpdateAccessPolicyRequest.newBuilder() + .setAccessPolicy( + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build()) + .setValidateOnly(true) + .build(); + + AccessPolicy actualResponse = client.updateAccessPolicyAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAccessPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateAccessPolicyRequest request = + UpdateAccessPolicyRequest.newBuilder() + .setAccessPolicy( + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build()) + .setValidateOnly(true) + .build(); + client.updateAccessPolicyAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAccessPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + + client.deleteAccessPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAccessPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + client.deleteAccessPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAccessPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-5052/locations/location-5052/accessPolicies/accessPolicie-5052"; + + client.deleteAccessPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAccessPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5052/locations/location-5052/accessPolicies/accessPolicie-5052"; + client.deleteAccessPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listAccessPoliciesTest() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessPoliciesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest2() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessPoliciesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest3() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessPoliciesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest4() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessPoliciesExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAccessPolicyBindingsTest() throws Exception { + PolicyBinding responsesElement = PolicyBinding.newBuilder().build(); + SearchAccessPolicyBindingsResponse expectedResponse = + SearchAccessPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AccessPolicyName name = + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + + SearchAccessPolicyBindingsPagedResponse pagedListResponse = + client.searchAccessPolicyBindings(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchAccessPolicyBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + client.searchAccessPolicyBindings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAccessPolicyBindingsTest2() throws Exception { + PolicyBinding responsesElement = PolicyBinding.newBuilder().build(); + SearchAccessPolicyBindingsResponse expectedResponse = + SearchAccessPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-9476/locations/location-9476/accessPolicies/accessPolicie-9476"; + + SearchAccessPolicyBindingsPagedResponse pagedListResponse = + client.searchAccessPolicyBindings(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchAccessPolicyBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-9476/locations/location-9476/accessPolicies/accessPolicie-9476"; + client.searchAccessPolicyBindings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/AccessPoliciesClientTest.java b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/AccessPoliciesClientTest.java new file mode 100644 index 000000000000..58430227bf33 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/AccessPoliciesClientTest.java @@ -0,0 +1,868 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3; + +import static com.google.iam.v3.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +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.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AccessPoliciesClientTest { + private static MockAccessPolicies mockAccessPolicies; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AccessPoliciesClient client; + + @BeforeClass + public static void startStaticServer() { + mockAccessPolicies = new MockAccessPolicies(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAccessPolicies, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AccessPoliciesSettings settings = + AccessPoliciesSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AccessPoliciesClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessPolicyRequest actualRequest = ((CreateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(accessPolicy, actualRequest.getAccessPolicy()); + Assert.assertEquals(accessPolicyId, actualRequest.getAccessPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAccessPolicyTest2() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessPolicyRequest actualRequest = ((CreateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(accessPolicy, actualRequest.getAccessPolicy()); + Assert.assertEquals(accessPolicyId, actualRequest.getAccessPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAccessPolicyTest3() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessPolicyRequest actualRequest = ((CreateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(accessPolicy, actualRequest.getAccessPolicy()); + Assert.assertEquals(accessPolicyId, actualRequest.getAccessPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessPolicyExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createAccessPolicyTest4() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + String parent = "parent-995424086"; + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessPolicyRequest actualRequest = ((CreateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(accessPolicy, actualRequest.getAccessPolicy()); + Assert.assertEquals(accessPolicyId, actualRequest.getAccessPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessPolicyExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String parent = "parent-995424086"; + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + + AccessPolicy actualResponse = client.getAccessPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessPolicyRequest actualRequest = ((GetAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + client.getAccessPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessPolicyTest2() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + String name = "name3373707"; + + AccessPolicy actualResponse = client.getAccessPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessPolicyRequest actualRequest = ((GetAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String name = "name3373707"; + client.getAccessPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + UpdateAccessPolicyRequest request = + UpdateAccessPolicyRequest.newBuilder() + .setAccessPolicy(AccessPolicy.newBuilder().build()) + .setValidateOnly(true) + .build(); + + AccessPolicy actualResponse = client.updateAccessPolicyAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAccessPolicyRequest actualRequest = ((UpdateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAccessPolicy(), actualRequest.getAccessPolicy()); + Assert.assertEquals(request.getValidateOnly(), actualRequest.getValidateOnly()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAccessPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + UpdateAccessPolicyRequest request = + UpdateAccessPolicyRequest.newBuilder() + .setAccessPolicy(AccessPolicy.newBuilder().build()) + .setValidateOnly(true) + .build(); + client.updateAccessPolicyAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAccessPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + + client.deleteAccessPolicyAsync(name).get(); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAccessPolicyRequest actualRequest = ((DeleteAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAccessPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + client.deleteAccessPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteAccessPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAccessPolicyAsync(name).get(); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAccessPolicyRequest actualRequest = ((DeleteAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAccessPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String name = "name3373707"; + client.deleteAccessPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listAccessPoliciesTest() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessPoliciesRequest actualRequest = ((ListAccessPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest2() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessPoliciesRequest actualRequest = ((ListAccessPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest3() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessPoliciesRequest actualRequest = ((ListAccessPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessPoliciesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest4() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessPoliciesRequest actualRequest = ((ListAccessPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessPoliciesExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAccessPolicyBindingsTest() throws Exception { + PolicyBinding responsesElement = PolicyBinding.newBuilder().build(); + SearchAccessPolicyBindingsResponse expectedResponse = + SearchAccessPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + AccessPolicyName name = + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + + SearchAccessPolicyBindingsPagedResponse pagedListResponse = + client.searchAccessPolicyBindings(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchAccessPolicyBindingsRequest actualRequest = + ((SearchAccessPolicyBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchAccessPolicyBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + client.searchAccessPolicyBindings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAccessPolicyBindingsTest2() throws Exception { + PolicyBinding responsesElement = PolicyBinding.newBuilder().build(); + SearchAccessPolicyBindingsResponse expectedResponse = + SearchAccessPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + String name = "name3373707"; + + SearchAccessPolicyBindingsPagedResponse pagedListResponse = + client.searchAccessPolicyBindings(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchAccessPolicyBindingsRequest actualRequest = + ((SearchAccessPolicyBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchAccessPolicyBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String name = "name3373707"; + client.searchAccessPolicyBindings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/MockAccessPolicies.java b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/MockAccessPolicies.java new file mode 100644 index 000000000000..39c11c548f22 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/MockAccessPolicies.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAccessPolicies implements MockGrpcService { + private final MockAccessPoliciesImpl serviceImpl; + + public MockAccessPolicies() { + serviceImpl = new MockAccessPoliciesImpl(); + } + + @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/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/MockAccessPoliciesImpl.java b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/MockAccessPoliciesImpl.java new file mode 100644 index 000000000000..db83a08c9d39 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3/MockAccessPoliciesImpl.java @@ -0,0 +1,190 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3; + +import com.google.api.core.BetaApi; +import com.google.iam.v3.AccessPoliciesGrpc.AccessPoliciesImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAccessPoliciesImpl extends AccessPoliciesImplBase { + private List requests; + private Queue responses; + + public MockAccessPoliciesImpl() { + 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 createAccessPolicy( + CreateAccessPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateAccessPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAccessPolicy( + GetAccessPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AccessPolicy) { + requests.add(request); + responseObserver.onNext(((AccessPolicy) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAccessPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AccessPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAccessPolicy( + UpdateAccessPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAccessPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAccessPolicy( + DeleteAccessPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteAccessPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAccessPolicies( + ListAccessPoliciesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAccessPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListAccessPoliciesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListAccessPolicies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAccessPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchAccessPolicyBindings( + SearchAccessPolicyBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchAccessPolicyBindingsResponse) { + requests.add(request); + responseObserver.onNext(((SearchAccessPolicyBindingsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SearchAccessPolicyBindings, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + SearchAccessPolicyBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-iam/grpc-google-iam-v3/src/main/java/com/google/iam/v3/AccessPoliciesGrpc.java b/java-iam/grpc-google-iam-v3/src/main/java/com/google/iam/v3/AccessPoliciesGrpc.java new file mode 100644 index 000000000000..4b1e809520d1 --- /dev/null +++ b/java-iam/grpc-google-iam-v3/src/main/java/com/google/iam/v3/AccessPoliciesGrpc.java @@ -0,0 +1,1061 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
        + * Manages Identity and Access Management (IAM) access policies.
        + * 
        + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AccessPoliciesGrpc { + + private AccessPoliciesGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.iam.v3.AccessPolicies"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3.CreateAccessPolicyRequest, com.google.longrunning.Operation> + getCreateAccessPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAccessPolicy", + requestType = com.google.iam.v3.CreateAccessPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3.CreateAccessPolicyRequest, com.google.longrunning.Operation> + getCreateAccessPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3.CreateAccessPolicyRequest, com.google.longrunning.Operation> + getCreateAccessPolicyMethod; + if ((getCreateAccessPolicyMethod = AccessPoliciesGrpc.getCreateAccessPolicyMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getCreateAccessPolicyMethod = AccessPoliciesGrpc.getCreateAccessPolicyMethod) + == null) { + AccessPoliciesGrpc.getCreateAccessPolicyMethod = + getCreateAccessPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccessPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3.CreateAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("CreateAccessPolicy")) + .build(); + } + } + } + return getCreateAccessPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3.GetAccessPolicyRequest, com.google.iam.v3.AccessPolicy> + getGetAccessPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessPolicy", + requestType = com.google.iam.v3.GetAccessPolicyRequest.class, + responseType = com.google.iam.v3.AccessPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3.GetAccessPolicyRequest, com.google.iam.v3.AccessPolicy> + getGetAccessPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3.GetAccessPolicyRequest, com.google.iam.v3.AccessPolicy> + getGetAccessPolicyMethod; + if ((getGetAccessPolicyMethod = AccessPoliciesGrpc.getGetAccessPolicyMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getGetAccessPolicyMethod = AccessPoliciesGrpc.getGetAccessPolicyMethod) == null) { + AccessPoliciesGrpc.getGetAccessPolicyMethod = + getGetAccessPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3.GetAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3.AccessPolicy.getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("GetAccessPolicy")) + .build(); + } + } + } + return getGetAccessPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3.UpdateAccessPolicyRequest, com.google.longrunning.Operation> + getUpdateAccessPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAccessPolicy", + requestType = com.google.iam.v3.UpdateAccessPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3.UpdateAccessPolicyRequest, com.google.longrunning.Operation> + getUpdateAccessPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3.UpdateAccessPolicyRequest, com.google.longrunning.Operation> + getUpdateAccessPolicyMethod; + if ((getUpdateAccessPolicyMethod = AccessPoliciesGrpc.getUpdateAccessPolicyMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getUpdateAccessPolicyMethod = AccessPoliciesGrpc.getUpdateAccessPolicyMethod) + == null) { + AccessPoliciesGrpc.getUpdateAccessPolicyMethod = + getUpdateAccessPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccessPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3.UpdateAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("UpdateAccessPolicy")) + .build(); + } + } + } + return getUpdateAccessPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3.DeleteAccessPolicyRequest, com.google.longrunning.Operation> + getDeleteAccessPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAccessPolicy", + requestType = com.google.iam.v3.DeleteAccessPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3.DeleteAccessPolicyRequest, com.google.longrunning.Operation> + getDeleteAccessPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3.DeleteAccessPolicyRequest, com.google.longrunning.Operation> + getDeleteAccessPolicyMethod; + if ((getDeleteAccessPolicyMethod = AccessPoliciesGrpc.getDeleteAccessPolicyMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getDeleteAccessPolicyMethod = AccessPoliciesGrpc.getDeleteAccessPolicyMethod) + == null) { + AccessPoliciesGrpc.getDeleteAccessPolicyMethod = + getDeleteAccessPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAccessPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3.DeleteAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("DeleteAccessPolicy")) + .build(); + } + } + } + return getDeleteAccessPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3.ListAccessPoliciesRequest, com.google.iam.v3.ListAccessPoliciesResponse> + getListAccessPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccessPolicies", + requestType = com.google.iam.v3.ListAccessPoliciesRequest.class, + responseType = com.google.iam.v3.ListAccessPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3.ListAccessPoliciesRequest, com.google.iam.v3.ListAccessPoliciesResponse> + getListAccessPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3.ListAccessPoliciesRequest, + com.google.iam.v3.ListAccessPoliciesResponse> + getListAccessPoliciesMethod; + if ((getListAccessPoliciesMethod = AccessPoliciesGrpc.getListAccessPoliciesMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getListAccessPoliciesMethod = AccessPoliciesGrpc.getListAccessPoliciesMethod) + == null) { + AccessPoliciesGrpc.getListAccessPoliciesMethod = + getListAccessPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccessPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3.ListAccessPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3.ListAccessPoliciesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("ListAccessPolicies")) + .build(); + } + } + } + return getListAccessPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3.SearchAccessPolicyBindingsRequest, + com.google.iam.v3.SearchAccessPolicyBindingsResponse> + getSearchAccessPolicyBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchAccessPolicyBindings", + requestType = com.google.iam.v3.SearchAccessPolicyBindingsRequest.class, + responseType = com.google.iam.v3.SearchAccessPolicyBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3.SearchAccessPolicyBindingsRequest, + com.google.iam.v3.SearchAccessPolicyBindingsResponse> + getSearchAccessPolicyBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3.SearchAccessPolicyBindingsRequest, + com.google.iam.v3.SearchAccessPolicyBindingsResponse> + getSearchAccessPolicyBindingsMethod; + if ((getSearchAccessPolicyBindingsMethod = + AccessPoliciesGrpc.getSearchAccessPolicyBindingsMethod) + == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getSearchAccessPolicyBindingsMethod = + AccessPoliciesGrpc.getSearchAccessPolicyBindingsMethod) + == null) { + AccessPoliciesGrpc.getSearchAccessPolicyBindingsMethod = + getSearchAccessPolicyBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchAccessPolicyBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3.SearchAccessPolicyBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3.SearchAccessPolicyBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("SearchAccessPolicyBindings")) + .build(); + } + } + } + return getSearchAccessPolicyBindingsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AccessPoliciesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessPoliciesStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesStub(channel, callOptions); + } + }; + return AccessPoliciesStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AccessPoliciesBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessPoliciesBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesBlockingV2Stub(channel, callOptions); + } + }; + return AccessPoliciesBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AccessPoliciesBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessPoliciesBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesBlockingStub(channel, callOptions); + } + }; + return AccessPoliciesBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AccessPoliciesFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessPoliciesFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesFutureStub(channel, callOptions); + } + }; + return AccessPoliciesFutureStub.newStub(factory, channel); + } + + /** + * + * + *
        +   * Manages Identity and Access Management (IAM) access policies.
        +   * 
        + */ + public interface AsyncService { + + /** + * + * + *
        +     * Creates an access policy, and returns a long running operation.
        +     * 
        + */ + default void createAccessPolicy( + com.google.iam.v3.CreateAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAccessPolicyMethod(), responseObserver); + } + + /** + * + * + *
        +     * Gets an access policy.
        +     * 
        + */ + default void getAccessPolicy( + com.google.iam.v3.GetAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAccessPolicyMethod(), responseObserver); + } + + /** + * + * + *
        +     * Updates an access policy.
        +     * 
        + */ + default void updateAccessPolicy( + com.google.iam.v3.UpdateAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAccessPolicyMethod(), responseObserver); + } + + /** + * + * + *
        +     * Deletes an access policy.
        +     * 
        + */ + default void deleteAccessPolicy( + com.google.iam.v3.DeleteAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAccessPolicyMethod(), responseObserver); + } + + /** + * + * + *
        +     * Lists access policies.
        +     * 
        + */ + default void listAccessPolicies( + com.google.iam.v3.ListAccessPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccessPoliciesMethod(), responseObserver); + } + + /** + * + * + *
        +     * Returns all policy bindings that bind a specific policy if a user has
        +     * searchPolicyBindings permission on that policy.
        +     * 
        + */ + default void searchAccessPolicyBindings( + com.google.iam.v3.SearchAccessPolicyBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAccessPolicyBindingsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AccessPolicies. + * + *
        +   * Manages Identity and Access Management (IAM) access policies.
        +   * 
        + */ + public abstract static class AccessPoliciesImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AccessPoliciesGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AccessPolicies. + * + *
        +   * Manages Identity and Access Management (IAM) access policies.
        +   * 
        + */ + public static final class AccessPoliciesStub + extends io.grpc.stub.AbstractAsyncStub { + private AccessPoliciesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessPoliciesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesStub(channel, callOptions); + } + + /** + * + * + *
        +     * Creates an access policy, and returns a long running operation.
        +     * 
        + */ + public void createAccessPolicy( + com.google.iam.v3.CreateAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAccessPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Gets an access policy.
        +     * 
        + */ + public void getAccessPolicy( + com.google.iam.v3.GetAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Updates an access policy.
        +     * 
        + */ + public void updateAccessPolicy( + com.google.iam.v3.UpdateAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccessPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Deletes an access policy.
        +     * 
        + */ + public void deleteAccessPolicy( + com.google.iam.v3.DeleteAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccessPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Lists access policies.
        +     * 
        + */ + public void listAccessPolicies( + com.google.iam.v3.ListAccessPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccessPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Returns all policy bindings that bind a specific policy if a user has
        +     * searchPolicyBindings permission on that policy.
        +     * 
        + */ + public void searchAccessPolicyBindings( + com.google.iam.v3.SearchAccessPolicyBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchAccessPolicyBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AccessPolicies. + * + *
        +   * Manages Identity and Access Management (IAM) access policies.
        +   * 
        + */ + public static final class AccessPoliciesBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AccessPoliciesBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessPoliciesBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
        +     * Creates an access policy, and returns a long running operation.
        +     * 
        + */ + public com.google.longrunning.Operation createAccessPolicy( + com.google.iam.v3.CreateAccessPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets an access policy.
        +     * 
        + */ + public com.google.iam.v3.AccessPolicy getAccessPolicy( + com.google.iam.v3.GetAccessPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Updates an access policy.
        +     * 
        + */ + public com.google.longrunning.Operation updateAccessPolicy( + com.google.iam.v3.UpdateAccessPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Deletes an access policy.
        +     * 
        + */ + public com.google.longrunning.Operation deleteAccessPolicy( + com.google.iam.v3.DeleteAccessPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists access policies.
        +     * 
        + */ + public com.google.iam.v3.ListAccessPoliciesResponse listAccessPolicies( + com.google.iam.v3.ListAccessPoliciesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAccessPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Returns all policy bindings that bind a specific policy if a user has
        +     * searchPolicyBindings permission on that policy.
        +     * 
        + */ + public com.google.iam.v3.SearchAccessPolicyBindingsResponse searchAccessPolicyBindings( + com.google.iam.v3.SearchAccessPolicyBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchAccessPolicyBindingsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AccessPolicies. + * + *
        +   * Manages Identity and Access Management (IAM) access policies.
        +   * 
        + */ + public static final class AccessPoliciesBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AccessPoliciesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessPoliciesBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesBlockingStub(channel, callOptions); + } + + /** + * + * + *
        +     * Creates an access policy, and returns a long running operation.
        +     * 
        + */ + public com.google.longrunning.Operation createAccessPolicy( + com.google.iam.v3.CreateAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets an access policy.
        +     * 
        + */ + public com.google.iam.v3.AccessPolicy getAccessPolicy( + com.google.iam.v3.GetAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Updates an access policy.
        +     * 
        + */ + public com.google.longrunning.Operation updateAccessPolicy( + com.google.iam.v3.UpdateAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Deletes an access policy.
        +     * 
        + */ + public com.google.longrunning.Operation deleteAccessPolicy( + com.google.iam.v3.DeleteAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists access policies.
        +     * 
        + */ + public com.google.iam.v3.ListAccessPoliciesResponse listAccessPolicies( + com.google.iam.v3.ListAccessPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccessPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Returns all policy bindings that bind a specific policy if a user has
        +     * searchPolicyBindings permission on that policy.
        +     * 
        + */ + public com.google.iam.v3.SearchAccessPolicyBindingsResponse searchAccessPolicyBindings( + com.google.iam.v3.SearchAccessPolicyBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAccessPolicyBindingsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AccessPolicies. + * + *
        +   * Manages Identity and Access Management (IAM) access policies.
        +   * 
        + */ + public static final class AccessPoliciesFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AccessPoliciesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessPoliciesFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesFutureStub(channel, callOptions); + } + + /** + * + * + *
        +     * Creates an access policy, and returns a long running operation.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + createAccessPolicy(com.google.iam.v3.CreateAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAccessPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Gets an access policy.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + getAccessPolicy(com.google.iam.v3.GetAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Updates an access policy.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + updateAccessPolicy(com.google.iam.v3.UpdateAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccessPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Deletes an access policy.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAccessPolicy(com.google.iam.v3.DeleteAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccessPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Lists access policies.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v3.ListAccessPoliciesResponse> + listAccessPolicies(com.google.iam.v3.ListAccessPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccessPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Returns all policy bindings that bind a specific policy if a user has
        +     * searchPolicyBindings permission on that policy.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v3.SearchAccessPolicyBindingsResponse> + searchAccessPolicyBindings(com.google.iam.v3.SearchAccessPolicyBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchAccessPolicyBindingsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_ACCESS_POLICY = 0; + private static final int METHODID_GET_ACCESS_POLICY = 1; + private static final int METHODID_UPDATE_ACCESS_POLICY = 2; + private static final int METHODID_DELETE_ACCESS_POLICY = 3; + private static final int METHODID_LIST_ACCESS_POLICIES = 4; + private static final int METHODID_SEARCH_ACCESS_POLICY_BINDINGS = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_ACCESS_POLICY: + serviceImpl.createAccessPolicy( + (com.google.iam.v3.CreateAccessPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACCESS_POLICY: + serviceImpl.getAccessPolicy( + (com.google.iam.v3.GetAccessPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ACCESS_POLICY: + serviceImpl.updateAccessPolicy( + (com.google.iam.v3.UpdateAccessPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ACCESS_POLICY: + serviceImpl.deleteAccessPolicy( + (com.google.iam.v3.DeleteAccessPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ACCESS_POLICIES: + serviceImpl.listAccessPolicies( + (com.google.iam.v3.ListAccessPoliciesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEARCH_ACCESS_POLICY_BINDINGS: + serviceImpl.searchAccessPolicyBindings( + (com.google.iam.v3.SearchAccessPolicyBindingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateAccessPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3.CreateAccessPolicyRequest, com.google.longrunning.Operation>( + service, METHODID_CREATE_ACCESS_POLICY))) + .addMethod( + getGetAccessPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3.GetAccessPolicyRequest, com.google.iam.v3.AccessPolicy>( + service, METHODID_GET_ACCESS_POLICY))) + .addMethod( + getUpdateAccessPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3.UpdateAccessPolicyRequest, com.google.longrunning.Operation>( + service, METHODID_UPDATE_ACCESS_POLICY))) + .addMethod( + getDeleteAccessPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3.DeleteAccessPolicyRequest, com.google.longrunning.Operation>( + service, METHODID_DELETE_ACCESS_POLICY))) + .addMethod( + getListAccessPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3.ListAccessPoliciesRequest, + com.google.iam.v3.ListAccessPoliciesResponse>( + service, METHODID_LIST_ACCESS_POLICIES))) + .addMethod( + getSearchAccessPolicyBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3.SearchAccessPolicyBindingsRequest, + com.google.iam.v3.SearchAccessPolicyBindingsResponse>( + service, METHODID_SEARCH_ACCESS_POLICY_BINDINGS))) + .build(); + } + + private abstract static class AccessPoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AccessPoliciesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.iam.v3.AccessPoliciesProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AccessPolicies"); + } + } + + private static final class AccessPoliciesFileDescriptorSupplier + extends AccessPoliciesBaseDescriptorSupplier { + AccessPoliciesFileDescriptorSupplier() {} + } + + private static final class AccessPoliciesMethodDescriptorSupplier + extends AccessPoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AccessPoliciesMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AccessPoliciesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AccessPoliciesFileDescriptorSupplier()) + .addMethod(getCreateAccessPolicyMethod()) + .addMethod(getGetAccessPolicyMethod()) + .addMethod(getUpdateAccessPolicyMethod()) + .addMethod(getDeleteAccessPolicyMethod()) + .addMethod(getListAccessPoliciesMethod()) + .addMethod(getSearchAccessPolicyBindingsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-iam/grpc-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingsGrpc.java b/java-iam/grpc-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingsGrpc.java index 0fa2f555a51d..7c326aa52b93 100644 --- a/java-iam/grpc-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingsGrpc.java +++ b/java-iam/grpc-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingsGrpc.java @@ -372,7 +372,7 @@ public interface AsyncService { *
              * Creates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is created, the policy is applied to the target.
        +     * After the binding is created, the policy is applied to the target.
              * 
        */ default void createPolicyBinding( @@ -402,9 +402,7 @@ default void getPolicyBinding( *
              * Updates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on the policy and target in the
        -     * binding to update, and the IAM permission to remove the existing policy
        -     * from the binding. Target is immutable and cannot be updated. Once the
        -     * binding is updated, the new policy is applied to the target.
        +     * binding to update. Target and policy are immutable and cannot be updated.
              * 
        */ default void updatePolicyBinding( @@ -420,7 +418,7 @@ default void updatePolicyBinding( *
              * Deletes a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is deleted, the policy no longer applies to the target.
        +     * After the binding is deleted, the policy no longer applies to the target.
              * 
        */ default void deletePolicyBinding( @@ -504,7 +502,7 @@ protected PolicyBindingsStub build(io.grpc.Channel channel, io.grpc.CallOptions *
              * Creates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is created, the policy is applied to the target.
        +     * After the binding is created, the policy is applied to the target.
              * 
        */ public void createPolicyBinding( @@ -538,9 +536,7 @@ public void getPolicyBinding( *
              * Updates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on the policy and target in the
        -     * binding to update, and the IAM permission to remove the existing policy
        -     * from the binding. Target is immutable and cannot be updated. Once the
        -     * binding is updated, the new policy is applied to the target.
        +     * binding to update. Target and policy are immutable and cannot be updated.
              * 
        */ public void updatePolicyBinding( @@ -558,7 +554,7 @@ public void updatePolicyBinding( *
              * Deletes a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is deleted, the policy no longer applies to the target.
        +     * After the binding is deleted, the policy no longer applies to the target.
              * 
        */ public void deletePolicyBinding( @@ -632,7 +628,7 @@ protected PolicyBindingsBlockingV2Stub build( *
              * Creates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is created, the policy is applied to the target.
        +     * After the binding is created, the policy is applied to the target.
              * 
        */ public com.google.longrunning.Operation createPolicyBinding( @@ -660,9 +656,7 @@ public com.google.iam.v3.PolicyBinding getPolicyBinding( *
              * Updates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on the policy and target in the
        -     * binding to update, and the IAM permission to remove the existing policy
        -     * from the binding. Target is immutable and cannot be updated. Once the
        -     * binding is updated, the new policy is applied to the target.
        +     * binding to update. Target and policy are immutable and cannot be updated.
              * 
        */ public com.google.longrunning.Operation updatePolicyBinding( @@ -677,7 +671,7 @@ public com.google.longrunning.Operation updatePolicyBinding( *
              * Deletes a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is deleted, the policy no longer applies to the target.
        +     * After the binding is deleted, the policy no longer applies to the target.
              * 
        */ public com.google.longrunning.Operation deletePolicyBinding( @@ -741,7 +735,7 @@ protected PolicyBindingsBlockingStub build( *
              * Creates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is created, the policy is applied to the target.
        +     * After the binding is created, the policy is applied to the target.
              * 
        */ public com.google.longrunning.Operation createPolicyBinding( @@ -769,9 +763,7 @@ public com.google.iam.v3.PolicyBinding getPolicyBinding( *
              * Updates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on the policy and target in the
        -     * binding to update, and the IAM permission to remove the existing policy
        -     * from the binding. Target is immutable and cannot be updated. Once the
        -     * binding is updated, the new policy is applied to the target.
        +     * binding to update. Target and policy are immutable and cannot be updated.
              * 
        */ public com.google.longrunning.Operation updatePolicyBinding( @@ -786,7 +778,7 @@ public com.google.longrunning.Operation updatePolicyBinding( *
              * Deletes a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is deleted, the policy no longer applies to the target.
        +     * After the binding is deleted, the policy no longer applies to the target.
              * 
        */ public com.google.longrunning.Operation deletePolicyBinding( @@ -849,7 +841,7 @@ protected PolicyBindingsFutureStub build( *
              * Creates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is created, the policy is applied to the target.
        +     * After the binding is created, the policy is applied to the target.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture @@ -877,9 +869,7 @@ protected PolicyBindingsFutureStub build( *
              * Updates a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on the policy and target in the
        -     * binding to update, and the IAM permission to remove the existing policy
        -     * from the binding. Target is immutable and cannot be updated. Once the
        -     * binding is updated, the new policy is applied to the target.
        +     * binding to update. Target and policy are immutable and cannot be updated.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture @@ -894,7 +884,7 @@ protected PolicyBindingsFutureStub build( *
              * Deletes a policy binding and returns a long-running operation.
              * Callers will need the IAM permissions on both the policy and target.
        -     * Once the binding is deleted, the policy no longer applies to the target.
        +     * After the binding is deleted, the policy no longer applies to the target.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPoliciesProto.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPoliciesProto.java new file mode 100644 index 000000000000..502c93ecf85f --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPoliciesProto.java @@ -0,0 +1,276 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public final class AccessPoliciesProto extends com.google.protobuf.GeneratedFile { + private AccessPoliciesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AccessPoliciesProto"); + } + + 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_iam_v3_CreateAccessPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_CreateAccessPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_GetAccessPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_GetAccessPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_UpdateAccessPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_UpdateAccessPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_DeleteAccessPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_DeleteAccessPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_ListAccessPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_ListAccessPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_ListAccessPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_ListAccessPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_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/iam/v3/access_policies_service.proto\022\r" + + "google.iam.v3\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\032+google/iam/v3/access_policy_resources.proto\032&google/iam/v3/oper" + + "ation_metadata.proto\032,google/iam/v3/policy_binding_resources.proto\032#google/longr" + + "unning/operations.proto\032\033google/protobuf/empty.proto\"\310\001\n" + + "\031CreateAccessPolicyRequest\0227\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037iam.googleapis.com/AccessPolicy\022\035\n" + + "\020access_policy_id\030\002 \001(\tB\003\340A\002\0227\n\r" + + "access_policy\030\003" + + " \001(\0132\033.google.iam.v3.AccessPolicyB\003\340A\002\022\032\n\r" + + "validate_only\030\004 \001(\010B\003\340A\001\"O\n" + + "\026GetAccessPolicyRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037iam.googleapis.com/AccessPolicy\"p\n" + + "\031UpdateAccessPolicyRequest\0227\n\r" + + "access_policy\030\001" + + " \001(\0132\033.google.iam.v3.AccessPolicyB\003\340A\002\022\032\n\r" + + "validate_only\030\002 \001(\010B\003\340A\001\"\225\001\n" + + "\031DeleteAccessPolicyRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037iam.googleapis.com/AccessPolicy\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\022\032\n\r" + + "validate_only\030\003 \001(\010B\003\340A\001\022\022\n" + + "\005force\030\004 \001(\010B\003\340A\001\"\205\001\n" + + "\031ListAccessPoliciesRequest\0227\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037iam.googleapis.com/AccessPolicy\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"p\n" + + "\032ListAccessPoliciesResponse\0224\n" + + "\017access_policies\030\001 \003(\0132\033.google.iam.v3.AccessPolicy\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\213\001\n" + + "!SearchAccessPolicyBindingsRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037iam.googleapis.com/AccessPolicy\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"y\n" + + "\"SearchAccessPolicyBindingsResponse\0225\n" + + "\017policy_bindings\030\001 \003(\0132\034.google.iam.v3.PolicyBinding\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\0012\322\020\n" + + "\016AccessPolicies\022\204\003\n" + + "\022CreateAccessPolicy\022" + + "(.google.iam.v3.CreateAccessPolicyRequest\032\035.google.longrunning.Operation\"\244\002\312A!\n" + + "\014AccessPolicy\022\021OperationMetadata\332A%parent" + + ",access_policy,access_policy_id\202\323\344\223\002\321\001\"2" + + "/v3/{parent=projects/*/locations/*}/accessPolicies:\r" + + "access_policyZB\"1/v3/{parent=folders/*/locations/*}/accessPolicies:\r" + + "access_policyZH\"7/v3/{parent=organizations/*/locations/*}/accessPolicies:\r" + + "access_policy\022\212\002\n" + + "\017GetAccessPolicy\022%.google.iam.v3.GetAccessPolicyRequest\032\033.google.iam." + + "v3.AccessPolicy\"\262\001\332A\004name\202\323\344\223\002\244\001\0222/v3/{n" + + "ame=projects/*/locations/*/accessPolicies/*}Z3\0221/v3/{name=folders/*/locations/*/" + + "accessPolicies/*}Z9\0227/v3/{name=organizations/*/locations/*/accessPolicies/*}\022\206\003\n" + + "\022UpdateAccessPolicy\022(.google.iam.v3.Upda" + + "teAccessPolicyRequest\032\035.google.longrunning.Operation\"\246\002\312A!\n" + + "\014AccessPolicy\022\021Operat" + + "ionMetadata\202\323\344\223\002\373\0012@/v3/{access_policy.n" + + "ame=projects/*/locations/*/accessPolicies/*}:\r" + + "access_policyZP2?/v3/{access_policy.name=folders/*/locations/*/accessPolicies/*}:\r" + + "access_policyZV2E/v3/{access_pol" + + "icy.name=organizations/*/locations/*/accessPolicies/*}:\r" + + "access_policy\022\277\002\n" + + "\022DeleteAccessPolicy\022(.google.iam.v3.DeleteAcces" + + "sPolicyRequest\032\035.google.longrunning.Operation\"\337\001\312A*\n" + + "\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\002\244\001*2/v3/{name=p" + + "rojects/*/locations/*/accessPolicies/*}Z3*1/v3/{name=folders/*/locations/*/acces" + + "sPolicies/*}Z9*7/v3/{name=organizations/*/locations/*/accessPolicies/*}\022\240\002\n" + + "\022ListAccessPolicies\022(.google.iam.v3.ListAcces" + + "sPoliciesRequest\032).google.iam.v3.ListAcc" + + "essPoliciesResponse\"\264\001\332A\006parent\202\323\344\223\002\244\001\0222" + + "/v3/{parent=projects/*/locations/*}/accessPoliciesZ3\0221/v3/{parent=folders/*/loca" + + "tions/*}/accessPoliciesZ9\0227/v3/{parent=o" + + "rganizations/*/locations/*}/accessPolicies\022\365\002\n" + + "\032SearchAccessPolicyBindings\0220.google.iam.v3.SearchAccessPolicyBindingsRequ" + + "est\0321.google.iam.v3.SearchAccessPolicyBi" + + "ndingsResponse\"\361\001\332A\004name\202\323\344\223\002\343\001\022L/v3/{na" + + "me=organizations/*/locations/*/accessPolicies/*}:searchPolicyBindingsZH\022F/v3/{na" + + "me=folders/*/locations/*/accessPolicies/*}:searchPolicyBindingsZI\022G/v3/{name=pro" + + "jects/*/locations/*/accessPolicies/*}:se" + + "archPolicyBindings\032F\312A\022iam.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/cloud-platformB\201\001\n" + + "\021com.google.iam.v3B\023AccessPoliciesProtoP\001Z)cloud.google.com/go/iam" + + "/apiv3/iampb;iampb\252\002\023Google.Cloud.Iam.V3" + + "\312\002\023Google\\Cloud\\Iam\\V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v3.AccessPolicyResourcesProto.getDescriptor(), + com.google.iam.v3.OperationMetadataProto.getDescriptor(), + com.google.iam.v3.PolicyBindingResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_iam_v3_CreateAccessPolicyRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_iam_v3_CreateAccessPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_CreateAccessPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "AccessPolicyId", "AccessPolicy", "ValidateOnly", + }); + internal_static_google_iam_v3_GetAccessPolicyRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_iam_v3_GetAccessPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_GetAccessPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_v3_UpdateAccessPolicyRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_iam_v3_UpdateAccessPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_UpdateAccessPolicyRequest_descriptor, + new java.lang.String[] { + "AccessPolicy", "ValidateOnly", + }); + internal_static_google_iam_v3_DeleteAccessPolicyRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_iam_v3_DeleteAccessPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_DeleteAccessPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", "ValidateOnly", "Force", + }); + internal_static_google_iam_v3_ListAccessPoliciesRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_iam_v3_ListAccessPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_ListAccessPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_iam_v3_ListAccessPoliciesResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_iam_v3_ListAccessPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_ListAccessPoliciesResponse_descriptor, + new java.lang.String[] { + "AccessPolicies", "NextPageToken", + }); + internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_descriptor, + new java.lang.String[] { + "PolicyBindings", "NextPageToken", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v3.AccessPolicyResourcesProto.getDescriptor(); + com.google.iam.v3.OperationMetadataProto.getDescriptor(); + com.google.iam.v3.PolicyBindingResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + 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); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicy.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicy.java new file mode 100644 index 000000000000..d5cac7279f52 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicy.java @@ -0,0 +1,2536 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policy_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * An IAM access policy resource.
        + * 
        + * + * Protobuf type {@code google.iam.v3.AccessPolicy} + */ +@com.google.protobuf.Generated +public final class AccessPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.AccessPolicy) + AccessPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AccessPolicy"); + } + + // Use AccessPolicy.newBuilder() to construct. + private AccessPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessPolicy() { + name_ = ""; + uid_ = ""; + etag_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.AccessPolicy.class, com.google.iam.v3.AccessPolicy.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Identifier. The resource name of the access policy.
        +   *
        +   * The following formats are supported:
        +   *
        +   * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Identifier. The resource name of the access policy.
        +   *
        +   * The following formats are supported:
        +   *
        +   * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.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 UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
        +   * Output only. The globally unique ID of the access policy.
        +   * 
        + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. The globally unique ID of the access policy.
        +   * 
        + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
        +   * Optional. The etag for the access policy.
        +   * If this is provided on update, it must match the server's etag.
        +   * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The etag for the access policy.
        +   * If this is provided on update, it must match the server's etag.
        +   * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
        +   * Optional. The description of the access policy. Must be less than
        +   * or equal to 63 characters.
        +   * 
        + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +   * Optional. The description of the access policy. Must be less than
        +   * or equal to 63 characters.
        +   * 
        + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 ANNOTATIONS_FIELD_NUMBER = 5; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicy_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
        +   * Optional. User defined annotations. See
        +   * https://google.aip.dev/148#annotations for more details such as format and
        +   * size limitations
        +   * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
        +   * Optional. User defined annotations. See
        +   * https://google.aip.dev/148#annotations for more details such as format and
        +   * size limitations
        +   * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
        +   * Optional. User defined annotations. See
        +   * https://google.aip.dev/148#annotations for more details such as format and
        +   * size limitations
        +   * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * Optional. User defined annotations. See
        +   * https://google.aip.dev/148#annotations for more details such as format and
        +   * size limitations
        +   * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
        +   * Output only. The time when the access policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. The time when the access policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the access policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
        +   * Output only. The time when the access policy was most recently
        +   * updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Output only. The time when the access policy was most recently
        +   * updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 7 [(.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. The time when the access policy was most recently
        +   * updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DETAILS_FIELD_NUMBER = 8; + private com.google.iam.v3.AccessPolicyDetails details_; + + /** + * + * + *
        +   * Optional. The details for the access policy.
        +   * 
        + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the details field is set. + */ + @java.lang.Override + public boolean hasDetails() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * Optional. The details for the access policy.
        +   * 
        + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The details. + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyDetails getDetails() { + return details_ == null ? com.google.iam.v3.AccessPolicyDetails.getDefaultInstance() : details_; + } + + /** + * + * + *
        +   * Optional. The details for the access policy.
        +   * 
        + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyDetailsOrBuilder getDetailsOrBuilder() { + return details_ == null ? com.google.iam.v3.AccessPolicyDetails.getDefaultInstance() : details_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, displayName_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getDetails()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, displayName_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDetails()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.AccessPolicy)) { + return super.equals(obj); + } + com.google.iam.v3.AccessPolicy other = (com.google.iam.v3.AccessPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) 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 (hasDetails() != other.hasDetails()) return false; + if (hasDetails()) { + if (!getDetails().equals(other.getDetails())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (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) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().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(); + } + if (hasDetails()) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.AccessPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicy parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicy parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.AccessPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * An IAM access policy resource.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.AccessPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.AccessPolicy) + com.google.iam.v3.AccessPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.AccessPolicy.class, com.google.iam.v3.AccessPolicy.Builder.class); + } + + // Construct using com.google.iam.v3.AccessPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + etag_ = ""; + displayName_ = ""; + internalGetMutableAnnotations().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + details_ = null; + if (detailsBuilder_ != null) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicy_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicy getDefaultInstanceForType() { + return com.google.iam.v3.AccessPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicy build() { + com.google.iam.v3.AccessPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicy buildPartial() { + com.google.iam.v3.AccessPolicy result = new com.google.iam.v3.AccessPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3.AccessPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.details_ = detailsBuilder_ == null ? details_ : detailsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.AccessPolicy) { + return mergeFrom((com.google.iam.v3.AccessPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.AccessPolicy other) { + if (other == com.google.iam.v3.AccessPolicy.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDetails()) { + mergeDetails(other.getDetails()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(internalGetDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Identifier. The resource name of the access policy.
        +     *
        +     * The following formats are supported:
        +     *
        +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Identifier. The resource name of the access policy.
        +     *
        +     * The following formats are supported:
        +     *
        +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Identifier. The resource name of the access policy.
        +     *
        +     * The following formats are supported:
        +     *
        +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Identifier. The resource name of the access policy.
        +     *
        +     * The following formats are supported:
        +     *
        +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Identifier. The resource name of the access policy.
        +     *
        +     * The following formats are supported:
        +     *
        +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
        +     * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
        +     * Output only. The globally unique ID of the access policy.
        +     * 
        + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The globally unique ID of the access policy.
        +     * 
        + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The globally unique ID of the access policy.
        +     * 
        + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The globally unique ID of the access policy.
        +     * 
        + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The globally unique ID of the access policy.
        +     * 
        + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
        +     * Optional. The etag for the access policy.
        +     * If this is provided on update, it must match the server's etag.
        +     * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The etag for the access policy.
        +     * If this is provided on update, it must match the server's etag.
        +     * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The etag for the access policy.
        +     * If this is provided on update, it must match the server's etag.
        +     * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The etag for the access policy.
        +     * If this is provided on update, it must match the server's etag.
        +     * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The etag for the access policy.
        +     * If this is provided on update, it must match the server's etag.
        +     * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
        +     * Optional. The description of the access policy. Must be less than
        +     * or equal to 63 characters.
        +     * 
        + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. The description of the access policy. Must be less than
        +     * or equal to 63 characters.
        +     * 
        + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. The description of the access policy. Must be less than
        +     * or equal to 63 characters.
        +     * 
        + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The description of the access policy. Must be less than
        +     * or equal to 63 characters.
        +     * 
        + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The description of the access policy. Must be less than
        +     * or equal to 63 characters.
        +     * 
        + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
        +     * Optional. User defined annotations. See
        +     * https://google.aip.dev/148#annotations for more details such as format and
        +     * size limitations
        +     * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
        +     * Optional. User defined annotations. See
        +     * https://google.aip.dev/148#annotations for more details such as format and
        +     * size limitations
        +     * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
        +     * Optional. User defined annotations. See
        +     * https://google.aip.dev/148#annotations for more details such as format and
        +     * size limitations
        +     * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +     * Optional. User defined annotations. See
        +     * https://google.aip.dev/148#annotations for more details such as format and
        +     * size limitations
        +     * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
        +     * Optional. User defined annotations. See
        +     * https://google.aip.dev/148#annotations for more details such as format and
        +     * size limitations
        +     * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
        +     * Optional. User defined annotations. See
        +     * https://google.aip.dev/148#annotations for more details such as format and
        +     * size limitations
        +     * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
        +     * Optional. User defined annotations. See
        +     * https://google.aip.dev/148#annotations for more details such as format and
        +     * size limitations
        +     * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time when the access policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
        +     * Output only. The time when the access policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the access policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time when the access policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time when the access policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time when the access policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time when the access policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time when the access policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 6 [(.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. The time when the access policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
        +     * Output only. The time when the access policy was most recently
        +     * updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
        +     * Output only. The time when the access policy was most recently
        +     * updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 7 [(.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. The time when the access policy was most recently
        +     * updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time when the access policy was most recently
        +     * updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time when the access policy was most recently
        +     * updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The time when the access policy was most recently
        +     * updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The time when the access policy was most recently
        +     * updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The time when the access policy was most recently
        +     * updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 7 [(.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. The time when the access policy was most recently
        +     * updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.iam.v3.AccessPolicyDetails details_; + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicyDetails, + com.google.iam.v3.AccessPolicyDetails.Builder, + com.google.iam.v3.AccessPolicyDetailsOrBuilder> + detailsBuilder_; + + /** + * + * + *
        +     * Optional. The details for the access policy.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the details field is set. + */ + public boolean hasDetails() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
        +     * Optional. The details for the access policy.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The details. + */ + public com.google.iam.v3.AccessPolicyDetails getDetails() { + if (detailsBuilder_ == null) { + return details_ == null + ? com.google.iam.v3.AccessPolicyDetails.getDefaultInstance() + : details_; + } else { + return detailsBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. The details for the access policy.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDetails(com.google.iam.v3.AccessPolicyDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + } else { + detailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The details for the access policy.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDetails(com.google.iam.v3.AccessPolicyDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + details_ = builderForValue.build(); + } else { + detailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The details for the access policy.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDetails(com.google.iam.v3.AccessPolicyDetails value) { + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && details_ != null + && details_ != com.google.iam.v3.AccessPolicyDetails.getDefaultInstance()) { + getDetailsBuilder().mergeFrom(value); + } else { + details_ = value; + } + } else { + detailsBuilder_.mergeFrom(value); + } + if (details_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The details for the access policy.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDetails() { + bitField0_ = (bitField0_ & ~0x00000080); + details_ = null; + if (detailsBuilder_ != null) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The details for the access policy.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.iam.v3.AccessPolicyDetails.Builder getDetailsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. The details for the access policy.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.iam.v3.AccessPolicyDetailsOrBuilder getDetailsOrBuilder() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilder(); + } else { + return details_ == null + ? com.google.iam.v3.AccessPolicyDetails.getDefaultInstance() + : details_; + } + } + + /** + * + * + *
        +     * Optional. The details for the access policy.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicyDetails, + com.google.iam.v3.AccessPolicyDetails.Builder, + com.google.iam.v3.AccessPolicyDetailsOrBuilder> + internalGetDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicyDetails, + com.google.iam.v3.AccessPolicyDetails.Builder, + com.google.iam.v3.AccessPolicyDetailsOrBuilder>( + getDetails(), getParentForChildren(), isClean()); + details_ = null; + } + return detailsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.AccessPolicy) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.AccessPolicy) + private static final com.google.iam.v3.AccessPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.AccessPolicy(); + } + + public static com.google.iam.v3.AccessPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyDetails.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyDetails.java new file mode 100644 index 000000000000..4ffc8f150b22 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyDetails.java @@ -0,0 +1,961 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policy_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Access policy details.
        + * 
        + * + * Protobuf type {@code google.iam.v3.AccessPolicyDetails} + */ +@com.google.protobuf.Generated +public final class AccessPolicyDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.AccessPolicyDetails) + AccessPolicyDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AccessPolicyDetails"); + } + + // Use AccessPolicyDetails.newBuilder() to construct. + private AccessPolicyDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessPolicyDetails() { + rules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.AccessPolicyDetails.class, + com.google.iam.v3.AccessPolicyDetails.Builder.class); + } + + public static final int RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List rules_; + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyRuleOrBuilder getRulesOrBuilder(int index) { + return rules_.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 < rules_.size(); i++) { + output.writeMessage(1, rules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.AccessPolicyDetails)) { + return super.equals(obj); + } + com.google.iam.v3.AccessPolicyDetails other = (com.google.iam.v3.AccessPolicyDetails) obj; + + if (!getRulesList().equals(other.getRulesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyDetails parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicyDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicyDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.AccessPolicyDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Access policy details.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.AccessPolicyDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.AccessPolicyDetails) + com.google.iam.v3.AccessPolicyDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.AccessPolicyDetails.class, + com.google.iam.v3.AccessPolicyDetails.Builder.class); + } + + // Construct using com.google.iam.v3.AccessPolicyDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyDetails_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyDetails getDefaultInstanceForType() { + return com.google.iam.v3.AccessPolicyDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyDetails build() { + com.google.iam.v3.AccessPolicyDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyDetails buildPartial() { + com.google.iam.v3.AccessPolicyDetails result = + new com.google.iam.v3.AccessPolicyDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v3.AccessPolicyDetails result) { + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.iam.v3.AccessPolicyDetails result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.AccessPolicyDetails) { + return mergeFrom((com.google.iam.v3.AccessPolicyDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.AccessPolicyDetails other) { + if (other == com.google.iam.v3.AccessPolicyDetails.getDefaultInstance()) return this; + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.iam.v3.AccessPolicyRule m = + input.readMessage( + com.google.iam.v3.AccessPolicyRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3.AccessPolicyRule, + com.google.iam.v3.AccessPolicyRule.Builder, + com.google.iam.v3.AccessPolicyRuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicyRule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules(int index, com.google.iam.v3.AccessPolicyRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules(int index, com.google.iam.v3.AccessPolicyRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.iam.v3.AccessPolicyRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(int index, com.google.iam.v3.AccessPolicyRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.iam.v3.AccessPolicyRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(int index, com.google.iam.v3.AccessPolicyRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicyRule.Builder getRulesBuilder(int index) { + return internalGetRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicyRuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicyRule.Builder addRulesBuilder() { + return internalGetRulesFieldBuilder() + .addBuilder(com.google.iam.v3.AccessPolicyRule.getDefaultInstance()); + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicyRule.Builder addRulesBuilder(int index) { + return internalGetRulesFieldBuilder() + .addBuilder(index, com.google.iam.v3.AccessPolicyRule.getDefaultInstance()); + } + + /** + * + * + *
        +     * Required. A list of access policy rules.
        +     * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesBuilderList() { + return internalGetRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3.AccessPolicyRule, + com.google.iam.v3.AccessPolicyRule.Builder, + com.google.iam.v3.AccessPolicyRuleOrBuilder> + internalGetRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3.AccessPolicyRule, + com.google.iam.v3.AccessPolicyRule.Builder, + com.google.iam.v3.AccessPolicyRuleOrBuilder>( + rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.AccessPolicyDetails) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.AccessPolicyDetails) + private static final com.google.iam.v3.AccessPolicyDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.AccessPolicyDetails(); + } + + public static com.google.iam.v3.AccessPolicyDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessPolicyDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyDetailsOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyDetailsOrBuilder.java new file mode 100644 index 000000000000..f576baf01e4d --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyDetailsOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policy_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface AccessPolicyDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.AccessPolicyDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRulesList(); + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3.AccessPolicyRule getRules(int index); + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRulesCount(); + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRulesOrBuilderList(); + + /** + * + * + *
        +   * Required. A list of access policy rules.
        +   * 
        + * + * + * repeated .google.iam.v3.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3.AccessPolicyRuleOrBuilder getRulesOrBuilder(int index); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyName.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyName.java new file mode 100644 index 000000000000..29dd38855850 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyName.java @@ -0,0 +1,452 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.iam.v3; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AccessPolicyName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION_ACCESS_POLICY = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/accessPolicies/{access_policy}"); + private static final PathTemplate FOLDER_LOCATION_ACCESS_POLICY = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/locations/{location}/accessPolicies/{access_policy}"); + private static final PathTemplate PROJECT_LOCATION_ACCESS_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/accessPolicies/{access_policy}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String accessPolicy; + private final String folder; + private final String project; + + @Deprecated + protected AccessPolicyName() { + organization = null; + location = null; + accessPolicy = null; + folder = null; + project = null; + } + + private AccessPolicyName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + accessPolicy = Preconditions.checkNotNull(builder.getAccessPolicy()); + folder = null; + project = null; + pathTemplate = ORGANIZATION_LOCATION_ACCESS_POLICY; + } + + private AccessPolicyName(FolderLocationAccessPolicyBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + location = Preconditions.checkNotNull(builder.getLocation()); + accessPolicy = Preconditions.checkNotNull(builder.getAccessPolicy()); + organization = null; + project = null; + pathTemplate = FOLDER_LOCATION_ACCESS_POLICY; + } + + private AccessPolicyName(ProjectLocationAccessPolicyBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + accessPolicy = Preconditions.checkNotNull(builder.getAccessPolicy()); + organization = null; + folder = null; + pathTemplate = PROJECT_LOCATION_ACCESS_POLICY; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getAccessPolicy() { + return accessPolicy; + } + + public String getFolder() { + return folder; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationAccessPolicyBuilder() { + return new Builder(); + } + + public static FolderLocationAccessPolicyBuilder newFolderLocationAccessPolicyBuilder() { + return new FolderLocationAccessPolicyBuilder(); + } + + public static ProjectLocationAccessPolicyBuilder newProjectLocationAccessPolicyBuilder() { + return new ProjectLocationAccessPolicyBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AccessPolicyName of(String organization, String location, String accessPolicy) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build(); + } + + public static AccessPolicyName ofOrganizationLocationAccessPolicyName( + String organization, String location, String accessPolicy) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build(); + } + + public static AccessPolicyName ofFolderLocationAccessPolicyName( + String folder, String location, String accessPolicy) { + return newFolderLocationAccessPolicyBuilder() + .setFolder(folder) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build(); + } + + public static AccessPolicyName ofProjectLocationAccessPolicyName( + String project, String location, String accessPolicy) { + return newProjectLocationAccessPolicyBuilder() + .setProject(project) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build(); + } + + public static String format(String organization, String location, String accessPolicy) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build() + .toString(); + } + + public static String formatOrganizationLocationAccessPolicyName( + String organization, String location, String accessPolicy) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build() + .toString(); + } + + public static String formatFolderLocationAccessPolicyName( + String folder, String location, String accessPolicy) { + return newFolderLocationAccessPolicyBuilder() + .setFolder(folder) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build() + .toString(); + } + + public static String formatProjectLocationAccessPolicyName( + String project, String location, String accessPolicy) { + return newProjectLocationAccessPolicyBuilder() + .setProject(project) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build() + .toString(); + } + + public static @Nullable AccessPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION_ACCESS_POLICY.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_ACCESS_POLICY.match(formattedString); + return ofOrganizationLocationAccessPolicyName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("access_policy")); + } else if (FOLDER_LOCATION_ACCESS_POLICY.matches(formattedString)) { + Map matchMap = FOLDER_LOCATION_ACCESS_POLICY.match(formattedString); + return ofFolderLocationAccessPolicyName( + matchMap.get("folder"), matchMap.get("location"), matchMap.get("access_policy")); + } else if (PROJECT_LOCATION_ACCESS_POLICY.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_ACCESS_POLICY.match(formattedString); + return ofProjectLocationAccessPolicyName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("access_policy")); + } + throw new ValidationException("AccessPolicyName.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<@Nullable AccessPolicyName> values) { + List list = new ArrayList<>(values.size()); + for (AccessPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION_ACCESS_POLICY.matches(formattedString) + || FOLDER_LOCATION_ACCESS_POLICY.matches(formattedString) + || PROJECT_LOCATION_ACCESS_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (accessPolicy != null) { + fieldMapBuilder.put("access_policy", accessPolicy); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AccessPolicyName that = ((AccessPolicyName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.accessPolicy, that.accessPolicy) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(accessPolicy); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for organizations/{organization}/locations/{location}/accessPolicies/{access_policy}. + */ + public static class Builder { + private String organization; + private String location; + private String accessPolicy; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getAccessPolicy() { + return accessPolicy; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAccessPolicy(String accessPolicy) { + this.accessPolicy = accessPolicy; + return this; + } + + private Builder(AccessPolicyName accessPolicyName) { + Preconditions.checkArgument( + Objects.equals(accessPolicyName.pathTemplate, ORGANIZATION_LOCATION_ACCESS_POLICY), + "toBuilder is only supported when AccessPolicyName has the pattern of" + + " organizations/{organization}/locations/{location}/accessPolicies/{access_policy}"); + this.organization = accessPolicyName.organization; + this.location = accessPolicyName.location; + this.accessPolicy = accessPolicyName.accessPolicy; + } + + public AccessPolicyName build() { + return new AccessPolicyName(this); + } + } + + /** Builder for folders/{folder}/locations/{location}/accessPolicies/{access_policy}. */ + public static class FolderLocationAccessPolicyBuilder { + private String folder; + private String location; + private String accessPolicy; + + protected FolderLocationAccessPolicyBuilder() {} + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public String getAccessPolicy() { + return accessPolicy; + } + + public FolderLocationAccessPolicyBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public FolderLocationAccessPolicyBuilder setLocation(String location) { + this.location = location; + return this; + } + + public FolderLocationAccessPolicyBuilder setAccessPolicy(String accessPolicy) { + this.accessPolicy = accessPolicy; + return this; + } + + public AccessPolicyName build() { + return new AccessPolicyName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/accessPolicies/{access_policy}. */ + public static class ProjectLocationAccessPolicyBuilder { + private String project; + private String location; + private String accessPolicy; + + protected ProjectLocationAccessPolicyBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAccessPolicy() { + return accessPolicy; + } + + public ProjectLocationAccessPolicyBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationAccessPolicyBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationAccessPolicyBuilder setAccessPolicy(String accessPolicy) { + this.accessPolicy = accessPolicy; + return this; + } + + public AccessPolicyName build() { + return new AccessPolicyName(this); + } + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyOrBuilder.java new file mode 100644 index 000000000000..c8ccc451f792 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyOrBuilder.java @@ -0,0 +1,355 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policy_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface AccessPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.AccessPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Identifier. The resource name of the access policy.
        +   *
        +   * The following formats are supported:
        +   *
        +   * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Identifier. The resource name of the access policy.
        +   *
        +   * The following formats are supported:
        +   *
        +   * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Output only. The globally unique ID of the access policy.
        +   * 
        + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
        +   * Output only. The globally unique ID of the access policy.
        +   * 
        + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
        +   * Optional. The etag for the access policy.
        +   * If this is provided on update, it must match the server's etag.
        +   * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
        +   * Optional. The etag for the access policy.
        +   * If this is provided on update, it must match the server's etag.
        +   * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
        +   * Optional. The description of the access policy. Must be less than
        +   * or equal to 63 characters.
        +   * 
        + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
        +   * Optional. The description of the access policy. Must be less than
        +   * or equal to 63 characters.
        +   * 
        + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
        +   * Optional. User defined annotations. See
        +   * https://google.aip.dev/148#annotations for more details such as format and
        +   * size limitations
        +   * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
        +   * Optional. User defined annotations. See
        +   * https://google.aip.dev/148#annotations for more details such as format and
        +   * size limitations
        +   * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
        +   * Optional. User defined annotations. See
        +   * https://google.aip.dev/148#annotations for more details such as format and
        +   * size limitations
        +   * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
        +   * Optional. User defined annotations. See
        +   * https://google.aip.dev/148#annotations for more details such as format and
        +   * size limitations
        +   * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
        +   * Optional. User defined annotations. See
        +   * https://google.aip.dev/148#annotations for more details such as format and
        +   * size limitations
        +   * 
        + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
        +   * Output only. The time when the access policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
        +   * Output only. The time when the access policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
        +   * Output only. The time when the access policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. The time when the access policy was most recently
        +   * updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
        +   * Output only. The time when the access policy was most recently
        +   * updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
        +   * Output only. The time when the access policy was most recently
        +   * updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
        +   * Optional. The details for the access policy.
        +   * 
        + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the details field is set. + */ + boolean hasDetails(); + + /** + * + * + *
        +   * Optional. The details for the access policy.
        +   * 
        + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The details. + */ + com.google.iam.v3.AccessPolicyDetails getDetails(); + + /** + * + * + *
        +   * Optional. The details for the access policy.
        +   * 
        + * + * .google.iam.v3.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.iam.v3.AccessPolicyDetailsOrBuilder getDetailsOrBuilder(); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyResourcesProto.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyResourcesProto.java new file mode 100644 index 000000000000..a391caba657e --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyResourcesProto.java @@ -0,0 +1,213 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policy_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public final class AccessPolicyResourcesProto extends com.google.protobuf.GeneratedFile { + private AccessPolicyResourcesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AccessPolicyResourcesProto"); + } + + 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_iam_v3_AccessPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_AccessPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_AccessPolicy_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_AccessPolicy_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_AccessPolicyDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_AccessPolicyDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_AccessPolicyRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_AccessPolicyRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_AccessPolicyRule_Operation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_AccessPolicyRule_Operation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3_AccessPolicyRule_ConditionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3_AccessPolicyRule_ConditionsEntry_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/iam/v3/access_policy_resources.proto\022\r" + + "google.iam.v3\032\037google/api/field_behavior.proto\032\033google/api/field_info.pro" + + "to\032\031google/api/resource.proto\032\037google/pr" + + "otobuf/timestamp.proto\032\026google/type/expr.proto\"\261\005\n" + + "\014AccessPolicy\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + + "\003uid\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\022\031\n" + + "\014display_name\030\004 \001(\tB\003\340A\001\022F\n" + + "\013annotations\030\005" + + " \003(\0132,.google.iam.v3.AccessPolicy.AnnotationsEntryB\003\340A\001\0224\n" + + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0228\n" + + "\007details\030\010" + + " \001(\0132\".google.iam.v3.AccessPolicyDetailsB\003\340A\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\243\002\352A\237\002\n" + + "\037iam.googleapis.com/AccessPolicy\022Porganizations/{organization}/locat" + + "ions/{location}/accessPolicies/{access_policy}\022Dfolders/{folder}/locations/{loca" + + "tion}/accessPolicies/{access_policy}\022Fprojects/{project}/locations/{location}/ac" + + "cessPolicies/{access_policy}*\016accessPolicies2\014accessPolicy\"J\n" + + "\023AccessPolicyDetails\0223\n" + + "\005rules\030\001" + + " \003(\0132\037.google.iam.v3.AccessPolicyRuleB\003\340A\002\"\235\004\n" + + "\020AccessPolicyRule\022\035\n" + + "\013description\030\001 \001(\tB\003\340A\001H\000\210\001\001\022@\n" + + "\006effect\030\002 \001" + + "(\0162&.google.iam.v3.AccessPolicyRule.EffectB\003\340A\002H\001\210\001\001\022\027\n\n" + + "principals\030\003 \003(\tB\003\340A\002\022 \n" + + "\023excluded_principals\030\004 \003(\tB\003\340A\001\022A\n" + + "\toperation\030\n" + + " \001(\0132).google.iam.v3.AccessPolicyRule.OperationB\003\340A\002\022H\n\n" + + "conditions\030\t \003(\0132/" + + ".google.iam.v3.AccessPolicyRule.ConditionsEntryB\003\340A\001\032H\n" + + "\tOperation\022\030\n" + + "\013permissions\030\001 \003(\tB\003\340A\001\022!\n" + + "\024excluded_permissions\030\002 \003(\tB\003\340A\001\032D\n" + + "\017ConditionsEntry\022\013\n" + + "\003key\030\001 \001(\t\022 \n" + + "\005value\030\002 \001(\0132\021.google.type.Expr:\0028\001\"5\n" + + "\006Effect\022\026\n" + + "\022EFFECT_UNSPECIFIED\020\000\022\010\n" + + "\004DENY\020\001\022\t\n" + + "\005ALLOW\020\002B\016\n" + + "\014_descriptionB\t\n" + + "\007_effectB\210\001\n" + + "\021com.google.iam.v3B\032AccessPolicyResour" + + "cesProtoP\001Z)cloud.google.com/go/iam/apiv" + + "3/iampb;iampb\252\002\023Google.Cloud.Iam.V3\312\002\023Go" + + "ogle\\Cloud\\Iam\\V3b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_iam_v3_AccessPolicy_descriptor = getDescriptor().getMessageType(0); + internal_static_google_iam_v3_AccessPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_AccessPolicy_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "Etag", + "DisplayName", + "Annotations", + "CreateTime", + "UpdateTime", + "Details", + }); + internal_static_google_iam_v3_AccessPolicy_AnnotationsEntry_descriptor = + internal_static_google_iam_v3_AccessPolicy_descriptor.getNestedType(0); + internal_static_google_iam_v3_AccessPolicy_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_AccessPolicy_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_iam_v3_AccessPolicyDetails_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_iam_v3_AccessPolicyDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_AccessPolicyDetails_descriptor, + new java.lang.String[] { + "Rules", + }); + internal_static_google_iam_v3_AccessPolicyRule_descriptor = getDescriptor().getMessageType(2); + internal_static_google_iam_v3_AccessPolicyRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_AccessPolicyRule_descriptor, + new java.lang.String[] { + "Description", + "Effect", + "Principals", + "ExcludedPrincipals", + "Operation", + "Conditions", + }); + internal_static_google_iam_v3_AccessPolicyRule_Operation_descriptor = + internal_static_google_iam_v3_AccessPolicyRule_descriptor.getNestedType(0); + internal_static_google_iam_v3_AccessPolicyRule_Operation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_AccessPolicyRule_Operation_descriptor, + new java.lang.String[] { + "Permissions", "ExcludedPermissions", + }); + internal_static_google_iam_v3_AccessPolicyRule_ConditionsEntry_descriptor = + internal_static_google_iam_v3_AccessPolicyRule_descriptor.getNestedType(1); + internal_static_google_iam_v3_AccessPolicyRule_ConditionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3_AccessPolicyRule_ConditionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.ExprProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyRule.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyRule.java new file mode 100644 index 000000000000..8e654fa4dcab --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyRule.java @@ -0,0 +1,4517 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policy_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Access Policy Rule that determines the behavior of the policy.
        + * 
        + * + * Protobuf type {@code google.iam.v3.AccessPolicyRule} + */ +@com.google.protobuf.Generated +public final class AccessPolicyRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.AccessPolicyRule) + AccessPolicyRuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AccessPolicyRule"); + } + + // Use AccessPolicyRule.newBuilder() to construct. + private AccessPolicyRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessPolicyRule() { + description_ = ""; + effect_ = 0; + principals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetConditions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.AccessPolicyRule.class, + com.google.iam.v3.AccessPolicyRule.Builder.class); + } + + /** + * + * + *
        +   * An effect to describe the access relationship.
        +   * 
        + * + * Protobuf enum {@code google.iam.v3.AccessPolicyRule.Effect} + */ + public enum Effect implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * The effect is unspecified.
        +     * 
        + * + * EFFECT_UNSPECIFIED = 0; + */ + EFFECT_UNSPECIFIED(0), + /** + * + * + *
        +     * The policy will deny access if it evaluates to true.
        +     * 
        + * + * DENY = 1; + */ + DENY(1), + /** + * + * + *
        +     * The policy will grant access if it evaluates to true.
        +     * 
        + * + * ALLOW = 2; + */ + ALLOW(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Effect"); + } + + /** + * + * + *
        +     * The effect is unspecified.
        +     * 
        + * + * EFFECT_UNSPECIFIED = 0; + */ + public static final int EFFECT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The policy will deny access if it evaluates to true.
        +     * 
        + * + * DENY = 1; + */ + public static final int DENY_VALUE = 1; + + /** + * + * + *
        +     * The policy will grant access if it evaluates to true.
        +     * 
        + * + * ALLOW = 2; + */ + public static final int ALLOW_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Effect 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 Effect forNumber(int value) { + switch (value) { + case 0: + return EFFECT_UNSPECIFIED; + case 1: + return DENY; + case 2: + return ALLOW; + 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 Effect findValueByNumber(int number) { + return Effect.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.iam.v3.AccessPolicyRule.getDescriptor().getEnumTypes().get(0); + } + + private static final Effect[] VALUES = values(); + + public static Effect 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 Effect(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.iam.v3.AccessPolicyRule.Effect) + } + + public interface OperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.AccessPolicyRule.Operation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +     * Optional. The permissions that are explicitly affected by this rule. Each
        +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +     * `{service_fqdn}` is the fully qualified domain name for the service.
        +     * Currently supported permissions are as follows:
        +     *
        +     * * `eventarc.googleapis.com/messageBuses.publish`.
        +     * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the permissions. + */ + java.util.List getPermissionsList(); + + /** + * + * + *
        +     * Optional. The permissions that are explicitly affected by this rule. Each
        +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +     * `{service_fqdn}` is the fully qualified domain name for the service.
        +     * Currently supported permissions are as follows:
        +     *
        +     * * `eventarc.googleapis.com/messageBuses.publish`.
        +     * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of permissions. + */ + int getPermissionsCount(); + + /** + * + * + *
        +     * Optional. The permissions that are explicitly affected by this rule. Each
        +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +     * `{service_fqdn}` is the fully qualified domain name for the service.
        +     * Currently supported permissions are as follows:
        +     *
        +     * * `eventarc.googleapis.com/messageBuses.publish`.
        +     * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + java.lang.String getPermissions(int index); + + /** + * + * + *
        +     * Optional. The permissions that are explicitly affected by this rule. Each
        +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +     * `{service_fqdn}` is the fully qualified domain name for the service.
        +     * Currently supported permissions are as follows:
        +     *
        +     * * `eventarc.googleapis.com/messageBuses.publish`.
        +     * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + com.google.protobuf.ByteString getPermissionsBytes(int index); + + /** + * + * + *
        +     * Optional. Specifies the permissions that this rule excludes from the set
        +     * of affected permissions given by `permissions`. If a permission appears
        +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +     * subject to the policy effect.
        +     *
        +     * The excluded permissions can be specified using the same syntax as
        +     * `permissions`.
        +     * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedPermissions. + */ + java.util.List getExcludedPermissionsList(); + + /** + * + * + *
        +     * Optional. Specifies the permissions that this rule excludes from the set
        +     * of affected permissions given by `permissions`. If a permission appears
        +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +     * subject to the policy effect.
        +     *
        +     * The excluded permissions can be specified using the same syntax as
        +     * `permissions`.
        +     * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedPermissions. + */ + int getExcludedPermissionsCount(); + + /** + * + * + *
        +     * Optional. Specifies the permissions that this rule excludes from the set
        +     * of affected permissions given by `permissions`. If a permission appears
        +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +     * subject to the policy effect.
        +     *
        +     * The excluded permissions can be specified using the same syntax as
        +     * `permissions`.
        +     * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedPermissions at the given index. + */ + java.lang.String getExcludedPermissions(int index); + + /** + * + * + *
        +     * Optional. Specifies the permissions that this rule excludes from the set
        +     * of affected permissions given by `permissions`. If a permission appears
        +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +     * subject to the policy effect.
        +     *
        +     * The excluded permissions can be specified using the same syntax as
        +     * `permissions`.
        +     * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedPermissions at the given index. + */ + com.google.protobuf.ByteString getExcludedPermissionsBytes(int index); + } + + /** + * + * + *
        +   * Attributes that are used to determine whether this rule applies to a
        +   * request.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.AccessPolicyRule.Operation} + */ + public static final class Operation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.AccessPolicyRule.Operation) + OperationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Operation"); + } + + // Use Operation.newBuilder() to construct. + private Operation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Operation() { + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.AccessPolicyRule.Operation.class, + com.google.iam.v3.AccessPolicyRule.Operation.Builder.class); + } + + public static final int PERMISSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +     * Optional. The permissions that are explicitly affected by this rule. Each
        +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +     * `{service_fqdn}` is the fully qualified domain name for the service.
        +     * Currently supported permissions are as follows:
        +     *
        +     * * `eventarc.googleapis.com/messageBuses.publish`.
        +     * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the permissions. + */ + public com.google.protobuf.ProtocolStringList getPermissionsList() { + return permissions_; + } + + /** + * + * + *
        +     * Optional. The permissions that are explicitly affected by this rule. Each
        +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +     * `{service_fqdn}` is the fully qualified domain name for the service.
        +     * Currently supported permissions are as follows:
        +     *
        +     * * `eventarc.googleapis.com/messageBuses.publish`.
        +     * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of permissions. + */ + public int getPermissionsCount() { + return permissions_.size(); + } + + /** + * + * + *
        +     * Optional. The permissions that are explicitly affected by this rule. Each
        +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +     * `{service_fqdn}` is the fully qualified domain name for the service.
        +     * Currently supported permissions are as follows:
        +     *
        +     * * `eventarc.googleapis.com/messageBuses.publish`.
        +     * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + public java.lang.String getPermissions(int index) { + return permissions_.get(index); + } + + /** + * + * + *
        +     * Optional. The permissions that are explicitly affected by this rule. Each
        +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +     * `{service_fqdn}` is the fully qualified domain name for the service.
        +     * Currently supported permissions are as follows:
        +     *
        +     * * `eventarc.googleapis.com/messageBuses.publish`.
        +     * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + public com.google.protobuf.ByteString getPermissionsBytes(int index) { + return permissions_.getByteString(index); + } + + public static final int EXCLUDED_PERMISSIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +     * Optional. Specifies the permissions that this rule excludes from the set
        +     * of affected permissions given by `permissions`. If a permission appears
        +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +     * subject to the policy effect.
        +     *
        +     * The excluded permissions can be specified using the same syntax as
        +     * `permissions`.
        +     * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedPermissions. + */ + public com.google.protobuf.ProtocolStringList getExcludedPermissionsList() { + return excludedPermissions_; + } + + /** + * + * + *
        +     * Optional. Specifies the permissions that this rule excludes from the set
        +     * of affected permissions given by `permissions`. If a permission appears
        +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +     * subject to the policy effect.
        +     *
        +     * The excluded permissions can be specified using the same syntax as
        +     * `permissions`.
        +     * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedPermissions. + */ + public int getExcludedPermissionsCount() { + return excludedPermissions_.size(); + } + + /** + * + * + *
        +     * Optional. Specifies the permissions that this rule excludes from the set
        +     * of affected permissions given by `permissions`. If a permission appears
        +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +     * subject to the policy effect.
        +     *
        +     * The excluded permissions can be specified using the same syntax as
        +     * `permissions`.
        +     * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedPermissions at the given index. + */ + public java.lang.String getExcludedPermissions(int index) { + return excludedPermissions_.get(index); + } + + /** + * + * + *
        +     * Optional. Specifies the permissions that this rule excludes from the set
        +     * of affected permissions given by `permissions`. If a permission appears
        +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +     * subject to the policy effect.
        +     *
        +     * The excluded permissions can be specified using the same syntax as
        +     * `permissions`.
        +     * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedPermissions at the given index. + */ + public com.google.protobuf.ByteString getExcludedPermissionsBytes(int index) { + return excludedPermissions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < permissions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, permissions_.getRaw(i)); + } + for (int i = 0; i < excludedPermissions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, excludedPermissions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < permissions_.size(); i++) { + dataSize += computeStringSizeNoTag(permissions_.getRaw(i)); + } + size += dataSize; + size += 1 * getPermissionsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedPermissions_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedPermissions_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedPermissionsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.AccessPolicyRule.Operation)) { + return super.equals(obj); + } + com.google.iam.v3.AccessPolicyRule.Operation other = + (com.google.iam.v3.AccessPolicyRule.Operation) obj; + + if (!getPermissionsList().equals(other.getPermissionsList())) return false; + if (!getExcludedPermissionsList().equals(other.getExcludedPermissionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPermissionsCount() > 0) { + hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPermissionsList().hashCode(); + } + if (getExcludedPermissionsCount() > 0) { + hash = (37 * hash) + EXCLUDED_PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedPermissionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.AccessPolicyRule.Operation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +     * Attributes that are used to determine whether this rule applies to a
        +     * request.
        +     * 
        + * + * Protobuf type {@code google.iam.v3.AccessPolicyRule.Operation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.AccessPolicyRule.Operation) + com.google.iam.v3.AccessPolicyRule.OperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.AccessPolicyRule.Operation.class, + com.google.iam.v3.AccessPolicyRule.Operation.Builder.class); + } + + // Construct using com.google.iam.v3.AccessPolicyRule.Operation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_Operation_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule.Operation getDefaultInstanceForType() { + return com.google.iam.v3.AccessPolicyRule.Operation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule.Operation build() { + com.google.iam.v3.AccessPolicyRule.Operation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule.Operation buildPartial() { + com.google.iam.v3.AccessPolicyRule.Operation result = + new com.google.iam.v3.AccessPolicyRule.Operation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3.AccessPolicyRule.Operation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + permissions_.makeImmutable(); + result.permissions_ = permissions_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedPermissions_.makeImmutable(); + result.excludedPermissions_ = excludedPermissions_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.AccessPolicyRule.Operation) { + return mergeFrom((com.google.iam.v3.AccessPolicyRule.Operation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.AccessPolicyRule.Operation other) { + if (other == com.google.iam.v3.AccessPolicyRule.Operation.getDefaultInstance()) return this; + if (!other.permissions_.isEmpty()) { + if (permissions_.isEmpty()) { + permissions_ = other.permissions_; + bitField0_ |= 0x00000001; + } else { + ensurePermissionsIsMutable(); + permissions_.addAll(other.permissions_); + } + onChanged(); + } + if (!other.excludedPermissions_.isEmpty()) { + if (excludedPermissions_.isEmpty()) { + excludedPermissions_ = other.excludedPermissions_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.addAll(other.excludedPermissions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePermissionsIsMutable() { + if (!permissions_.isModifiable()) { + permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
        +       * Optional. The permissions that are explicitly affected by this rule. Each
        +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +       * `{service_fqdn}` is the fully qualified domain name for the service.
        +       * Currently supported permissions are as follows:
        +       *
        +       * * `eventarc.googleapis.com/messageBuses.publish`.
        +       * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the permissions. + */ + public com.google.protobuf.ProtocolStringList getPermissionsList() { + permissions_.makeImmutable(); + return permissions_; + } + + /** + * + * + *
        +       * Optional. The permissions that are explicitly affected by this rule. Each
        +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +       * `{service_fqdn}` is the fully qualified domain name for the service.
        +       * Currently supported permissions are as follows:
        +       *
        +       * * `eventarc.googleapis.com/messageBuses.publish`.
        +       * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of permissions. + */ + public int getPermissionsCount() { + return permissions_.size(); + } + + /** + * + * + *
        +       * Optional. The permissions that are explicitly affected by this rule. Each
        +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +       * `{service_fqdn}` is the fully qualified domain name for the service.
        +       * Currently supported permissions are as follows:
        +       *
        +       * * `eventarc.googleapis.com/messageBuses.publish`.
        +       * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + public java.lang.String getPermissions(int index) { + return permissions_.get(index); + } + + /** + * + * + *
        +       * Optional. The permissions that are explicitly affected by this rule. Each
        +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +       * `{service_fqdn}` is the fully qualified domain name for the service.
        +       * Currently supported permissions are as follows:
        +       *
        +       * * `eventarc.googleapis.com/messageBuses.publish`.
        +       * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + public com.google.protobuf.ByteString getPermissionsBytes(int index) { + return permissions_.getByteString(index); + } + + /** + * + * + *
        +       * Optional. The permissions that are explicitly affected by this rule. Each
        +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +       * `{service_fqdn}` is the fully qualified domain name for the service.
        +       * Currently supported permissions are as follows:
        +       *
        +       * * `eventarc.googleapis.com/messageBuses.publish`.
        +       * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The permissions to set. + * @return This builder for chaining. + */ + public Builder setPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); + permissions_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Optional. The permissions that are explicitly affected by this rule. Each
        +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +       * `{service_fqdn}` is the fully qualified domain name for the service.
        +       * Currently supported permissions are as follows:
        +       *
        +       * * `eventarc.googleapis.com/messageBuses.publish`.
        +       * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The permissions to add. + * @return This builder for chaining. + */ + public Builder addPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); + permissions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Optional. The permissions that are explicitly affected by this rule. Each
        +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +       * `{service_fqdn}` is the fully qualified domain name for the service.
        +       * Currently supported permissions are as follows:
        +       *
        +       * * `eventarc.googleapis.com/messageBuses.publish`.
        +       * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The permissions to add. + * @return This builder for chaining. + */ + public Builder addAllPermissions(java.lang.Iterable values) { + ensurePermissionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Optional. The permissions that are explicitly affected by this rule. Each
        +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +       * `{service_fqdn}` is the fully qualified domain name for the service.
        +       * Currently supported permissions are as follows:
        +       *
        +       * * `eventarc.googleapis.com/messageBuses.publish`.
        +       * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPermissions() { + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Optional. The permissions that are explicitly affected by this rule. Each
        +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
        +       * `{service_fqdn}` is the fully qualified domain name for the service.
        +       * Currently supported permissions are as follows:
        +       *
        +       * * `eventarc.googleapis.com/messageBuses.publish`.
        +       * 
        + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the permissions to add. + * @return This builder for chaining. + */ + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePermissionsIsMutable(); + permissions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedPermissionsIsMutable() { + if (!excludedPermissions_.isModifiable()) { + excludedPermissions_ = new com.google.protobuf.LazyStringArrayList(excludedPermissions_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
        +       * Optional. Specifies the permissions that this rule excludes from the set
        +       * of affected permissions given by `permissions`. If a permission appears
        +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +       * subject to the policy effect.
        +       *
        +       * The excluded permissions can be specified using the same syntax as
        +       * `permissions`.
        +       * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedPermissions. + */ + public com.google.protobuf.ProtocolStringList getExcludedPermissionsList() { + excludedPermissions_.makeImmutable(); + return excludedPermissions_; + } + + /** + * + * + *
        +       * Optional. Specifies the permissions that this rule excludes from the set
        +       * of affected permissions given by `permissions`. If a permission appears
        +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +       * subject to the policy effect.
        +       *
        +       * The excluded permissions can be specified using the same syntax as
        +       * `permissions`.
        +       * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedPermissions. + */ + public int getExcludedPermissionsCount() { + return excludedPermissions_.size(); + } + + /** + * + * + *
        +       * Optional. Specifies the permissions that this rule excludes from the set
        +       * of affected permissions given by `permissions`. If a permission appears
        +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +       * subject to the policy effect.
        +       *
        +       * The excluded permissions can be specified using the same syntax as
        +       * `permissions`.
        +       * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedPermissions at the given index. + */ + public java.lang.String getExcludedPermissions(int index) { + return excludedPermissions_.get(index); + } + + /** + * + * + *
        +       * Optional. Specifies the permissions that this rule excludes from the set
        +       * of affected permissions given by `permissions`. If a permission appears
        +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +       * subject to the policy effect.
        +       *
        +       * The excluded permissions can be specified using the same syntax as
        +       * `permissions`.
        +       * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedPermissions at the given index. + */ + public com.google.protobuf.ByteString getExcludedPermissionsBytes(int index) { + return excludedPermissions_.getByteString(index); + } + + /** + * + * + *
        +       * Optional. Specifies the permissions that this rule excludes from the set
        +       * of affected permissions given by `permissions`. If a permission appears
        +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +       * subject to the policy effect.
        +       *
        +       * The excluded permissions can be specified using the same syntax as
        +       * `permissions`.
        +       * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludedPermissions to set. + * @return This builder for chaining. + */ + public Builder setExcludedPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Optional. Specifies the permissions that this rule excludes from the set
        +       * of affected permissions given by `permissions`. If a permission appears
        +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +       * subject to the policy effect.
        +       *
        +       * The excluded permissions can be specified using the same syntax as
        +       * `permissions`.
        +       * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludedPermissions to add. + * @return This builder for chaining. + */ + public Builder addExcludedPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Optional. Specifies the permissions that this rule excludes from the set
        +       * of affected permissions given by `permissions`. If a permission appears
        +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +       * subject to the policy effect.
        +       *
        +       * The excluded permissions can be specified using the same syntax as
        +       * `permissions`.
        +       * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludedPermissions to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedPermissions(java.lang.Iterable values) { + ensureExcludedPermissionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedPermissions_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Optional. Specifies the permissions that this rule excludes from the set
        +       * of affected permissions given by `permissions`. If a permission appears
        +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +       * subject to the policy effect.
        +       *
        +       * The excluded permissions can be specified using the same syntax as
        +       * `permissions`.
        +       * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedPermissions() { + excludedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Optional. Specifies the permissions that this rule excludes from the set
        +       * of affected permissions given by `permissions`. If a permission appears
        +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
        +       * subject to the policy effect.
        +       *
        +       * The excluded permissions can be specified using the same syntax as
        +       * `permissions`.
        +       * 
        + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludedPermissions to add. + * @return This builder for chaining. + */ + public Builder addExcludedPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.AccessPolicyRule.Operation) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.AccessPolicyRule.Operation) + private static final com.google.iam.v3.AccessPolicyRule.Operation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.AccessPolicyRule.Operation(); + } + + public static com.google.iam.v3.AccessPolicyRule.Operation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Operation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule.Operation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
        +   * Optional. Customer specified description of the rule. Must be less than or
        +   * equal to 256 characters.
        +   * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. Customer specified description of the rule. Must be less than or
        +   * equal to 256 characters.
        +   * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Customer specified description of the rule. Must be less than or
        +   * equal to 256 characters.
        +   * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 2; + private int effect_ = 0; + + /** + * + * + *
        +   * Required. The effect of the rule.
        +   * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the effect field is set. + */ + @java.lang.Override + public boolean hasEffect() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Required. The effect of the rule.
        +   * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for effect. + */ + @java.lang.Override + public int getEffectValue() { + return effect_; + } + + /** + * + * + *
        +   * Required. The effect of the rule.
        +   * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The effect. + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule.Effect getEffect() { + com.google.iam.v3.AccessPolicyRule.Effect result = + com.google.iam.v3.AccessPolicyRule.Effect.forNumber(effect_); + return result == null ? com.google.iam.v3.AccessPolicyRule.Effect.UNRECOGNIZED : result; + } + + public static final int PRINCIPALS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList principals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Required. The identities for which this rule's effect governs using one or
        +   * more permissions on Google Cloud resources. This field can contain the
        +   * following values:
        +   *
        +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +   * example, `principal://goog/subject/alice@example.com`.
        +   *
        +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +   * A Google Cloud service account. For example,
        +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +   *
        +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +   * `principalSet://goog/group/admins@example.com`.
        +   *
        +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +   * principals associated with the specified Google Workspace or Cloud
        +   * Identity customer ID. For example,
        +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +   *
        +   *
        +   * If an identifier that was previously set on a policy is soft deleted, then
        +   * calls to read that policy will return the identifier with a deleted
        +   * prefix. Users cannot set identifiers with this syntax.
        +   *
        +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +   * Google Account that was deleted recently. For example,
        +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +   * the Google Account is recovered, this identifier reverts to the standard
        +   * identifier for a Google Account.
        +   *
        +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +   * that was deleted recently. For example,
        +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +   * If the Google group is restored, this identifier reverts to the standard
        +   * identifier for a Google group.
        +   *
        +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +   * A Google Cloud service account that was deleted recently. For example,
        +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +   * If the service account is undeleted, this identifier reverts to the
        +   * standard identifier for a service account.
        +   * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the principals. + */ + public com.google.protobuf.ProtocolStringList getPrincipalsList() { + return principals_; + } + + /** + * + * + *
        +   * Required. The identities for which this rule's effect governs using one or
        +   * more permissions on Google Cloud resources. This field can contain the
        +   * following values:
        +   *
        +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +   * example, `principal://goog/subject/alice@example.com`.
        +   *
        +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +   * A Google Cloud service account. For example,
        +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +   *
        +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +   * `principalSet://goog/group/admins@example.com`.
        +   *
        +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +   * principals associated with the specified Google Workspace or Cloud
        +   * Identity customer ID. For example,
        +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +   *
        +   *
        +   * If an identifier that was previously set on a policy is soft deleted, then
        +   * calls to read that policy will return the identifier with a deleted
        +   * prefix. Users cannot set identifiers with this syntax.
        +   *
        +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +   * Google Account that was deleted recently. For example,
        +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +   * the Google Account is recovered, this identifier reverts to the standard
        +   * identifier for a Google Account.
        +   *
        +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +   * that was deleted recently. For example,
        +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +   * If the Google group is restored, this identifier reverts to the standard
        +   * identifier for a Google group.
        +   *
        +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +   * A Google Cloud service account that was deleted recently. For example,
        +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +   * If the service account is undeleted, this identifier reverts to the
        +   * standard identifier for a service account.
        +   * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of principals. + */ + public int getPrincipalsCount() { + return principals_.size(); + } + + /** + * + * + *
        +   * Required. The identities for which this rule's effect governs using one or
        +   * more permissions on Google Cloud resources. This field can contain the
        +   * following values:
        +   *
        +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +   * example, `principal://goog/subject/alice@example.com`.
        +   *
        +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +   * A Google Cloud service account. For example,
        +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +   *
        +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +   * `principalSet://goog/group/admins@example.com`.
        +   *
        +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +   * principals associated with the specified Google Workspace or Cloud
        +   * Identity customer ID. For example,
        +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +   *
        +   *
        +   * If an identifier that was previously set on a policy is soft deleted, then
        +   * calls to read that policy will return the identifier with a deleted
        +   * prefix. Users cannot set identifiers with this syntax.
        +   *
        +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +   * Google Account that was deleted recently. For example,
        +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +   * the Google Account is recovered, this identifier reverts to the standard
        +   * identifier for a Google Account.
        +   *
        +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +   * that was deleted recently. For example,
        +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +   * If the Google group is restored, this identifier reverts to the standard
        +   * identifier for a Google group.
        +   *
        +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +   * A Google Cloud service account that was deleted recently. For example,
        +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +   * If the service account is undeleted, this identifier reverts to the
        +   * standard identifier for a service account.
        +   * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The principals at the given index. + */ + public java.lang.String getPrincipals(int index) { + return principals_.get(index); + } + + /** + * + * + *
        +   * Required. The identities for which this rule's effect governs using one or
        +   * more permissions on Google Cloud resources. This field can contain the
        +   * following values:
        +   *
        +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +   * example, `principal://goog/subject/alice@example.com`.
        +   *
        +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +   * A Google Cloud service account. For example,
        +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +   *
        +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +   * `principalSet://goog/group/admins@example.com`.
        +   *
        +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +   * principals associated with the specified Google Workspace or Cloud
        +   * Identity customer ID. For example,
        +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +   *
        +   *
        +   * If an identifier that was previously set on a policy is soft deleted, then
        +   * calls to read that policy will return the identifier with a deleted
        +   * prefix. Users cannot set identifiers with this syntax.
        +   *
        +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +   * Google Account that was deleted recently. For example,
        +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +   * the Google Account is recovered, this identifier reverts to the standard
        +   * identifier for a Google Account.
        +   *
        +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +   * that was deleted recently. For example,
        +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +   * If the Google group is restored, this identifier reverts to the standard
        +   * identifier for a Google group.
        +   *
        +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +   * A Google Cloud service account that was deleted recently. For example,
        +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +   * If the service account is undeleted, this identifier reverts to the
        +   * standard identifier for a service account.
        +   * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the principals at the given index. + */ + public com.google.protobuf.ByteString getPrincipalsBytes(int index) { + return principals_.getByteString(index); + } + + public static final int EXCLUDED_PRINCIPALS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. The identities that are excluded from the access policy rule,
        +   * even if they are listed in the `principals`. For example, you could add a
        +   * Google group to the `principals`, then exclude specific users who belong to
        +   * that group.
        +   * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludedPrincipals. + */ + public com.google.protobuf.ProtocolStringList getExcludedPrincipalsList() { + return excludedPrincipals_; + } + + /** + * + * + *
        +   * Optional. The identities that are excluded from the access policy rule,
        +   * even if they are listed in the `principals`. For example, you could add a
        +   * Google group to the `principals`, then exclude specific users who belong to
        +   * that group.
        +   * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludedPrincipals. + */ + public int getExcludedPrincipalsCount() { + return excludedPrincipals_.size(); + } + + /** + * + * + *
        +   * Optional. The identities that are excluded from the access policy rule,
        +   * even if they are listed in the `principals`. For example, you could add a
        +   * Google group to the `principals`, then exclude specific users who belong to
        +   * that group.
        +   * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludedPrincipals at the given index. + */ + public java.lang.String getExcludedPrincipals(int index) { + return excludedPrincipals_.get(index); + } + + /** + * + * + *
        +   * Optional. The identities that are excluded from the access policy rule,
        +   * even if they are listed in the `principals`. For example, you could add a
        +   * Google group to the `principals`, then exclude specific users who belong to
        +   * that group.
        +   * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludedPrincipals at the given index. + */ + public com.google.protobuf.ByteString getExcludedPrincipalsBytes(int index) { + return excludedPrincipals_.getByteString(index); + } + + public static final int OPERATION_FIELD_NUMBER = 10; + private com.google.iam.v3.AccessPolicyRule.Operation operation_; + + /** + * + * + *
        +   * Required. Attributes that are used to determine whether this rule applies
        +   * to a request.
        +   * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the operation field is set. + */ + @java.lang.Override + public boolean hasOperation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * Required. Attributes that are used to determine whether this rule applies
        +   * to a request.
        +   * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule.Operation getOperation() { + return operation_ == null + ? com.google.iam.v3.AccessPolicyRule.Operation.getDefaultInstance() + : operation_; + } + + /** + * + * + *
        +   * Required. Attributes that are used to determine whether this rule applies
        +   * to a request.
        +   * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule.OperationOrBuilder getOperationOrBuilder() { + return operation_ == null + ? com.google.iam.v3.AccessPolicyRule.Operation.getDefaultInstance() + : operation_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 9; + + private static final class ConditionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_ConditionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.type.Expr.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField conditions_; + + private com.google.protobuf.MapField + internalGetConditions() { + if (conditions_ == null) { + return com.google.protobuf.MapField.emptyMapField(ConditionsDefaultEntryHolder.defaultEntry); + } + return conditions_; + } + + public int getConditionsCount() { + return internalGetConditions().getMap().size(); + } + + /** + * + * + *
        +   * Optional. The conditions that determine whether this rule applies to a
        +   * request. Conditions are identified by their key, which is the FQDN of the
        +   * service that they are relevant to. For example:
        +   *
        +   * ```
        +   * "conditions": {
        +   * "iam.googleapis.com": {
        +   * "expression": <cel expression>
        +   * }
        +   * }
        +   * ```
        +   *
        +   * Each rule is evaluated independently. If this rule does not apply
        +   * to a request, other rules might still apply.
        +   * Currently supported keys are as follows:
        +   *
        +   *
        +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +   * resource fields.
        +   *
        +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +   * [resource
        +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +   * combine them using boolean and logical operators. Other functions and
        +   * operators are not supported.
        +   * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsConditions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConditions().getMap().containsKey(key); + } + + /** Use {@link #getConditionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConditions() { + return getConditionsMap(); + } + + /** + * + * + *
        +   * Optional. The conditions that determine whether this rule applies to a
        +   * request. Conditions are identified by their key, which is the FQDN of the
        +   * service that they are relevant to. For example:
        +   *
        +   * ```
        +   * "conditions": {
        +   * "iam.googleapis.com": {
        +   * "expression": <cel expression>
        +   * }
        +   * }
        +   * ```
        +   *
        +   * Each rule is evaluated independently. If this rule does not apply
        +   * to a request, other rules might still apply.
        +   * Currently supported keys are as follows:
        +   *
        +   *
        +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +   * resource fields.
        +   *
        +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +   * [resource
        +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +   * combine them using boolean and logical operators. Other functions and
        +   * operators are not supported.
        +   * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getConditionsMap() { + return internalGetConditions().getMap(); + } + + /** + * + * + *
        +   * Optional. The conditions that determine whether this rule applies to a
        +   * request. Conditions are identified by their key, which is the FQDN of the
        +   * service that they are relevant to. For example:
        +   *
        +   * ```
        +   * "conditions": {
        +   * "iam.googleapis.com": {
        +   * "expression": <cel expression>
        +   * }
        +   * }
        +   * ```
        +   *
        +   * Each rule is evaluated independently. If this rule does not apply
        +   * to a request, other rules might still apply.
        +   * Currently supported keys are as follows:
        +   *
        +   *
        +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +   * resource fields.
        +   *
        +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +   * [resource
        +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +   * combine them using boolean and logical operators. Other functions and
        +   * operators are not supported.
        +   * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.type.Expr getConditionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.type.Expr defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetConditions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
        +   * Optional. The conditions that determine whether this rule applies to a
        +   * request. Conditions are identified by their key, which is the FQDN of the
        +   * service that they are relevant to. For example:
        +   *
        +   * ```
        +   * "conditions": {
        +   * "iam.googleapis.com": {
        +   * "expression": <cel expression>
        +   * }
        +   * }
        +   * ```
        +   *
        +   * Each rule is evaluated independently. If this rule does not apply
        +   * to a request, other rules might still apply.
        +   * Currently supported keys are as follows:
        +   *
        +   *
        +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +   * resource fields.
        +   *
        +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +   * [resource
        +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +   * combine them using boolean and logical operators. Other functions and
        +   * operators are not supported.
        +   * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.Expr getConditionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetConditions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, effect_); + } + for (int i = 0; i < principals_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, principals_.getRaw(i)); + } + for (int i = 0; i < excludedPrincipals_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, excludedPrincipals_.getRaw(i)); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetConditions(), ConditionsDefaultEntryHolder.defaultEntry, 9); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getOperation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, effect_); + } + { + int dataSize = 0; + for (int i = 0; i < principals_.size(); i++) { + dataSize += computeStringSizeNoTag(principals_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrincipalsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedPrincipals_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedPrincipals_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedPrincipalsList().size(); + } + for (java.util.Map.Entry entry : + internalGetConditions().getMap().entrySet()) { + com.google.protobuf.MapEntry conditions__ = + ConditionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, conditions__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getOperation()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.AccessPolicyRule)) { + return super.equals(obj); + } + com.google.iam.v3.AccessPolicyRule other = (com.google.iam.v3.AccessPolicyRule) obj; + + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasEffect() != other.hasEffect()) return false; + if (hasEffect()) { + if (effect_ != other.effect_) return false; + } + if (!getPrincipalsList().equals(other.getPrincipalsList())) return false; + if (!getExcludedPrincipalsList().equals(other.getExcludedPrincipalsList())) return false; + if (hasOperation() != other.hasOperation()) return false; + if (hasOperation()) { + if (!getOperation().equals(other.getOperation())) return false; + } + if (!internalGetConditions().equals(other.internalGetConditions())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasEffect()) { + hash = (37 * hash) + EFFECT_FIELD_NUMBER; + hash = (53 * hash) + effect_; + } + if (getPrincipalsCount() > 0) { + hash = (37 * hash) + PRINCIPALS_FIELD_NUMBER; + hash = (53 * hash) + getPrincipalsList().hashCode(); + } + if (getExcludedPrincipalsCount() > 0) { + hash = (37 * hash) + EXCLUDED_PRINCIPALS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedPrincipalsList().hashCode(); + } + if (hasOperation()) { + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + } + if (!internalGetConditions().getMap().isEmpty()) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetConditions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicyRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.AccessPolicyRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.AccessPolicyRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Access Policy Rule that determines the behavior of the policy.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.AccessPolicyRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.AccessPolicyRule) + com.google.iam.v3.AccessPolicyRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetConditions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableConditions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.AccessPolicyRule.class, + com.google.iam.v3.AccessPolicyRule.Builder.class); + } + + // Construct using com.google.iam.v3.AccessPolicyRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOperationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + effect_ = 0; + principals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + operation_ = null; + if (operationBuilder_ != null) { + operationBuilder_.dispose(); + operationBuilder_ = null; + } + internalGetMutableConditions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPolicyResourcesProto + .internal_static_google_iam_v3_AccessPolicyRule_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule getDefaultInstanceForType() { + return com.google.iam.v3.AccessPolicyRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule build() { + com.google.iam.v3.AccessPolicyRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule buildPartial() { + com.google.iam.v3.AccessPolicyRule result = new com.google.iam.v3.AccessPolicyRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3.AccessPolicyRule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.effect_ = effect_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + principals_.makeImmutable(); + result.principals_ = principals_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + excludedPrincipals_.makeImmutable(); + result.excludedPrincipals_ = excludedPrincipals_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.conditions_ = + internalGetConditions().build(ConditionsDefaultEntryHolder.defaultEntry); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.AccessPolicyRule) { + return mergeFrom((com.google.iam.v3.AccessPolicyRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.AccessPolicyRule other) { + if (other == com.google.iam.v3.AccessPolicyRule.getDefaultInstance()) return this; + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEffect()) { + setEffectValue(other.getEffectValue()); + } + if (!other.principals_.isEmpty()) { + if (principals_.isEmpty()) { + principals_ = other.principals_; + bitField0_ |= 0x00000004; + } else { + ensurePrincipalsIsMutable(); + principals_.addAll(other.principals_); + } + onChanged(); + } + if (!other.excludedPrincipals_.isEmpty()) { + if (excludedPrincipals_.isEmpty()) { + excludedPrincipals_ = other.excludedPrincipals_; + bitField0_ |= 0x00000008; + } else { + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.addAll(other.excludedPrincipals_); + } + onChanged(); + } + if (other.hasOperation()) { + mergeOperation(other.getOperation()); + } + internalGetMutableConditions().mergeFrom(other.internalGetConditions()); + bitField0_ |= 0x00000020; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + effect_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrincipalsIsMutable(); + principals_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.add(s); + break; + } // case 34 + case 74: + { + com.google.protobuf.MapEntry conditions__ = + input.readMessage( + ConditionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConditions() + .ensureBuilderMap() + .put(conditions__.getKey(), conditions__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetOperationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object description_ = ""; + + /** + * + * + *
        +     * Optional. Customer specified description of the rule. Must be less than or
        +     * equal to 256 characters.
        +     * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +     * Optional. Customer specified description of the rule. Must be less than or
        +     * equal to 256 characters.
        +     * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Customer specified description of the rule. Must be less than or
        +     * equal to 256 characters.
        +     * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Customer specified description of the rule. Must be less than or
        +     * equal to 256 characters.
        +     * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Customer specified description of the rule. Must be less than or
        +     * equal to 256 characters.
        +     * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Customer specified description of the rule. Must be less than or
        +     * equal to 256 characters.
        +     * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int effect_ = 0; + + /** + * + * + *
        +     * Required. The effect of the rule.
        +     * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the effect field is set. + */ + @java.lang.Override + public boolean hasEffect() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +     * Required. The effect of the rule.
        +     * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for effect. + */ + @java.lang.Override + public int getEffectValue() { + return effect_; + } + + /** + * + * + *
        +     * Required. The effect of the rule.
        +     * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for effect to set. + * @return This builder for chaining. + */ + public Builder setEffectValue(int value) { + effect_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The effect of the rule.
        +     * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The effect. + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule.Effect getEffect() { + com.google.iam.v3.AccessPolicyRule.Effect result = + com.google.iam.v3.AccessPolicyRule.Effect.forNumber(effect_); + return result == null ? com.google.iam.v3.AccessPolicyRule.Effect.UNRECOGNIZED : result; + } + + /** + * + * + *
        +     * Required. The effect of the rule.
        +     * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The effect to set. + * @return This builder for chaining. + */ + public Builder setEffect(com.google.iam.v3.AccessPolicyRule.Effect value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + effect_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The effect of the rule.
        +     * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffect() { + bitField0_ = (bitField0_ & ~0x00000002); + effect_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList principals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePrincipalsIsMutable() { + if (!principals_.isModifiable()) { + principals_ = new com.google.protobuf.LazyStringArrayList(principals_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
        +     * Required. The identities for which this rule's effect governs using one or
        +     * more permissions on Google Cloud resources. This field can contain the
        +     * following values:
        +     *
        +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +     * example, `principal://goog/subject/alice@example.com`.
        +     *
        +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +     * A Google Cloud service account. For example,
        +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +     *
        +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +     * `principalSet://goog/group/admins@example.com`.
        +     *
        +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +     * principals associated with the specified Google Workspace or Cloud
        +     * Identity customer ID. For example,
        +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +     *
        +     *
        +     * If an identifier that was previously set on a policy is soft deleted, then
        +     * calls to read that policy will return the identifier with a deleted
        +     * prefix. Users cannot set identifiers with this syntax.
        +     *
        +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +     * Google Account that was deleted recently. For example,
        +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +     * the Google Account is recovered, this identifier reverts to the standard
        +     * identifier for a Google Account.
        +     *
        +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +     * that was deleted recently. For example,
        +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +     * If the Google group is restored, this identifier reverts to the standard
        +     * identifier for a Google group.
        +     *
        +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +     * A Google Cloud service account that was deleted recently. For example,
        +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +     * If the service account is undeleted, this identifier reverts to the
        +     * standard identifier for a service account.
        +     * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the principals. + */ + public com.google.protobuf.ProtocolStringList getPrincipalsList() { + principals_.makeImmutable(); + return principals_; + } + + /** + * + * + *
        +     * Required. The identities for which this rule's effect governs using one or
        +     * more permissions on Google Cloud resources. This field can contain the
        +     * following values:
        +     *
        +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +     * example, `principal://goog/subject/alice@example.com`.
        +     *
        +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +     * A Google Cloud service account. For example,
        +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +     *
        +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +     * `principalSet://goog/group/admins@example.com`.
        +     *
        +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +     * principals associated with the specified Google Workspace or Cloud
        +     * Identity customer ID. For example,
        +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +     *
        +     *
        +     * If an identifier that was previously set on a policy is soft deleted, then
        +     * calls to read that policy will return the identifier with a deleted
        +     * prefix. Users cannot set identifiers with this syntax.
        +     *
        +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +     * Google Account that was deleted recently. For example,
        +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +     * the Google Account is recovered, this identifier reverts to the standard
        +     * identifier for a Google Account.
        +     *
        +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +     * that was deleted recently. For example,
        +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +     * If the Google group is restored, this identifier reverts to the standard
        +     * identifier for a Google group.
        +     *
        +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +     * A Google Cloud service account that was deleted recently. For example,
        +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +     * If the service account is undeleted, this identifier reverts to the
        +     * standard identifier for a service account.
        +     * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of principals. + */ + public int getPrincipalsCount() { + return principals_.size(); + } + + /** + * + * + *
        +     * Required. The identities for which this rule's effect governs using one or
        +     * more permissions on Google Cloud resources. This field can contain the
        +     * following values:
        +     *
        +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +     * example, `principal://goog/subject/alice@example.com`.
        +     *
        +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +     * A Google Cloud service account. For example,
        +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +     *
        +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +     * `principalSet://goog/group/admins@example.com`.
        +     *
        +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +     * principals associated with the specified Google Workspace or Cloud
        +     * Identity customer ID. For example,
        +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +     *
        +     *
        +     * If an identifier that was previously set on a policy is soft deleted, then
        +     * calls to read that policy will return the identifier with a deleted
        +     * prefix. Users cannot set identifiers with this syntax.
        +     *
        +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +     * Google Account that was deleted recently. For example,
        +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +     * the Google Account is recovered, this identifier reverts to the standard
        +     * identifier for a Google Account.
        +     *
        +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +     * that was deleted recently. For example,
        +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +     * If the Google group is restored, this identifier reverts to the standard
        +     * identifier for a Google group.
        +     *
        +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +     * A Google Cloud service account that was deleted recently. For example,
        +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +     * If the service account is undeleted, this identifier reverts to the
        +     * standard identifier for a service account.
        +     * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The principals at the given index. + */ + public java.lang.String getPrincipals(int index) { + return principals_.get(index); + } + + /** + * + * + *
        +     * Required. The identities for which this rule's effect governs using one or
        +     * more permissions on Google Cloud resources. This field can contain the
        +     * following values:
        +     *
        +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +     * example, `principal://goog/subject/alice@example.com`.
        +     *
        +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +     * A Google Cloud service account. For example,
        +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +     *
        +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +     * `principalSet://goog/group/admins@example.com`.
        +     *
        +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +     * principals associated with the specified Google Workspace or Cloud
        +     * Identity customer ID. For example,
        +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +     *
        +     *
        +     * If an identifier that was previously set on a policy is soft deleted, then
        +     * calls to read that policy will return the identifier with a deleted
        +     * prefix. Users cannot set identifiers with this syntax.
        +     *
        +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +     * Google Account that was deleted recently. For example,
        +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +     * the Google Account is recovered, this identifier reverts to the standard
        +     * identifier for a Google Account.
        +     *
        +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +     * that was deleted recently. For example,
        +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +     * If the Google group is restored, this identifier reverts to the standard
        +     * identifier for a Google group.
        +     *
        +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +     * A Google Cloud service account that was deleted recently. For example,
        +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +     * If the service account is undeleted, this identifier reverts to the
        +     * standard identifier for a service account.
        +     * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the principals at the given index. + */ + public com.google.protobuf.ByteString getPrincipalsBytes(int index) { + return principals_.getByteString(index); + } + + /** + * + * + *
        +     * Required. The identities for which this rule's effect governs using one or
        +     * more permissions on Google Cloud resources. This field can contain the
        +     * following values:
        +     *
        +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +     * example, `principal://goog/subject/alice@example.com`.
        +     *
        +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +     * A Google Cloud service account. For example,
        +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +     *
        +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +     * `principalSet://goog/group/admins@example.com`.
        +     *
        +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +     * principals associated with the specified Google Workspace or Cloud
        +     * Identity customer ID. For example,
        +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +     *
        +     *
        +     * If an identifier that was previously set on a policy is soft deleted, then
        +     * calls to read that policy will return the identifier with a deleted
        +     * prefix. Users cannot set identifiers with this syntax.
        +     *
        +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +     * Google Account that was deleted recently. For example,
        +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +     * the Google Account is recovered, this identifier reverts to the standard
        +     * identifier for a Google Account.
        +     *
        +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +     * that was deleted recently. For example,
        +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +     * If the Google group is restored, this identifier reverts to the standard
        +     * identifier for a Google group.
        +     *
        +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +     * A Google Cloud service account that was deleted recently. For example,
        +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +     * If the service account is undeleted, this identifier reverts to the
        +     * standard identifier for a service account.
        +     * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The principals to set. + * @return This builder for chaining. + */ + public Builder setPrincipals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The identities for which this rule's effect governs using one or
        +     * more permissions on Google Cloud resources. This field can contain the
        +     * following values:
        +     *
        +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +     * example, `principal://goog/subject/alice@example.com`.
        +     *
        +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +     * A Google Cloud service account. For example,
        +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +     *
        +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +     * `principalSet://goog/group/admins@example.com`.
        +     *
        +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +     * principals associated with the specified Google Workspace or Cloud
        +     * Identity customer ID. For example,
        +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +     *
        +     *
        +     * If an identifier that was previously set on a policy is soft deleted, then
        +     * calls to read that policy will return the identifier with a deleted
        +     * prefix. Users cannot set identifiers with this syntax.
        +     *
        +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +     * Google Account that was deleted recently. For example,
        +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +     * the Google Account is recovered, this identifier reverts to the standard
        +     * identifier for a Google Account.
        +     *
        +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +     * that was deleted recently. For example,
        +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +     * If the Google group is restored, this identifier reverts to the standard
        +     * identifier for a Google group.
        +     *
        +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +     * A Google Cloud service account that was deleted recently. For example,
        +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +     * If the service account is undeleted, this identifier reverts to the
        +     * standard identifier for a service account.
        +     * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The principals to add. + * @return This builder for chaining. + */ + public Builder addPrincipals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The identities for which this rule's effect governs using one or
        +     * more permissions on Google Cloud resources. This field can contain the
        +     * following values:
        +     *
        +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +     * example, `principal://goog/subject/alice@example.com`.
        +     *
        +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +     * A Google Cloud service account. For example,
        +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +     *
        +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +     * `principalSet://goog/group/admins@example.com`.
        +     *
        +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +     * principals associated with the specified Google Workspace or Cloud
        +     * Identity customer ID. For example,
        +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +     *
        +     *
        +     * If an identifier that was previously set on a policy is soft deleted, then
        +     * calls to read that policy will return the identifier with a deleted
        +     * prefix. Users cannot set identifiers with this syntax.
        +     *
        +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +     * Google Account that was deleted recently. For example,
        +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +     * the Google Account is recovered, this identifier reverts to the standard
        +     * identifier for a Google Account.
        +     *
        +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +     * that was deleted recently. For example,
        +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +     * If the Google group is restored, this identifier reverts to the standard
        +     * identifier for a Google group.
        +     *
        +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +     * A Google Cloud service account that was deleted recently. For example,
        +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +     * If the service account is undeleted, this identifier reverts to the
        +     * standard identifier for a service account.
        +     * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The principals to add. + * @return This builder for chaining. + */ + public Builder addAllPrincipals(java.lang.Iterable values) { + ensurePrincipalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, principals_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The identities for which this rule's effect governs using one or
        +     * more permissions on Google Cloud resources. This field can contain the
        +     * following values:
        +     *
        +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +     * example, `principal://goog/subject/alice@example.com`.
        +     *
        +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +     * A Google Cloud service account. For example,
        +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +     *
        +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +     * `principalSet://goog/group/admins@example.com`.
        +     *
        +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +     * principals associated with the specified Google Workspace or Cloud
        +     * Identity customer ID. For example,
        +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +     *
        +     *
        +     * If an identifier that was previously set on a policy is soft deleted, then
        +     * calls to read that policy will return the identifier with a deleted
        +     * prefix. Users cannot set identifiers with this syntax.
        +     *
        +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +     * Google Account that was deleted recently. For example,
        +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +     * the Google Account is recovered, this identifier reverts to the standard
        +     * identifier for a Google Account.
        +     *
        +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +     * that was deleted recently. For example,
        +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +     * If the Google group is restored, this identifier reverts to the standard
        +     * identifier for a Google group.
        +     *
        +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +     * A Google Cloud service account that was deleted recently. For example,
        +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +     * If the service account is undeleted, this identifier reverts to the
        +     * standard identifier for a service account.
        +     * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrincipals() { + principals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The identities for which this rule's effect governs using one or
        +     * more permissions on Google Cloud resources. This field can contain the
        +     * following values:
        +     *
        +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +     * example, `principal://goog/subject/alice@example.com`.
        +     *
        +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +     * A Google Cloud service account. For example,
        +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +     *
        +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +     * `principalSet://goog/group/admins@example.com`.
        +     *
        +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +     * principals associated with the specified Google Workspace or Cloud
        +     * Identity customer ID. For example,
        +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +     *
        +     *
        +     * If an identifier that was previously set on a policy is soft deleted, then
        +     * calls to read that policy will return the identifier with a deleted
        +     * prefix. Users cannot set identifiers with this syntax.
        +     *
        +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +     * Google Account that was deleted recently. For example,
        +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +     * the Google Account is recovered, this identifier reverts to the standard
        +     * identifier for a Google Account.
        +     *
        +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +     * that was deleted recently. For example,
        +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +     * If the Google group is restored, this identifier reverts to the standard
        +     * identifier for a Google group.
        +     *
        +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +     * A Google Cloud service account that was deleted recently. For example,
        +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +     * If the service account is undeleted, this identifier reverts to the
        +     * standard identifier for a service account.
        +     * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the principals to add. + * @return This builder for chaining. + */ + public Builder addPrincipalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrincipalsIsMutable(); + principals_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedPrincipalsIsMutable() { + if (!excludedPrincipals_.isModifiable()) { + excludedPrincipals_ = new com.google.protobuf.LazyStringArrayList(excludedPrincipals_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
        +     * Optional. The identities that are excluded from the access policy rule,
        +     * even if they are listed in the `principals`. For example, you could add a
        +     * Google group to the `principals`, then exclude specific users who belong to
        +     * that group.
        +     * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedPrincipals. + */ + public com.google.protobuf.ProtocolStringList getExcludedPrincipalsList() { + excludedPrincipals_.makeImmutable(); + return excludedPrincipals_; + } + + /** + * + * + *
        +     * Optional. The identities that are excluded from the access policy rule,
        +     * even if they are listed in the `principals`. For example, you could add a
        +     * Google group to the `principals`, then exclude specific users who belong to
        +     * that group.
        +     * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedPrincipals. + */ + public int getExcludedPrincipalsCount() { + return excludedPrincipals_.size(); + } + + /** + * + * + *
        +     * Optional. The identities that are excluded from the access policy rule,
        +     * even if they are listed in the `principals`. For example, you could add a
        +     * Google group to the `principals`, then exclude specific users who belong to
        +     * that group.
        +     * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedPrincipals at the given index. + */ + public java.lang.String getExcludedPrincipals(int index) { + return excludedPrincipals_.get(index); + } + + /** + * + * + *
        +     * Optional. The identities that are excluded from the access policy rule,
        +     * even if they are listed in the `principals`. For example, you could add a
        +     * Google group to the `principals`, then exclude specific users who belong to
        +     * that group.
        +     * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedPrincipals at the given index. + */ + public com.google.protobuf.ByteString getExcludedPrincipalsBytes(int index) { + return excludedPrincipals_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. The identities that are excluded from the access policy rule,
        +     * even if they are listed in the `principals`. For example, you could add a
        +     * Google group to the `principals`, then exclude specific users who belong to
        +     * that group.
        +     * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludedPrincipals to set. + * @return This builder for chaining. + */ + public Builder setExcludedPrincipals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The identities that are excluded from the access policy rule,
        +     * even if they are listed in the `principals`. For example, you could add a
        +     * Google group to the `principals`, then exclude specific users who belong to
        +     * that group.
        +     * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludedPrincipals to add. + * @return This builder for chaining. + */ + public Builder addExcludedPrincipals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The identities that are excluded from the access policy rule,
        +     * even if they are listed in the `principals`. For example, you could add a
        +     * Google group to the `principals`, then exclude specific users who belong to
        +     * that group.
        +     * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludedPrincipals to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedPrincipals(java.lang.Iterable values) { + ensureExcludedPrincipalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedPrincipals_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The identities that are excluded from the access policy rule,
        +     * even if they are listed in the `principals`. For example, you could add a
        +     * Google group to the `principals`, then exclude specific users who belong to
        +     * that group.
        +     * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedPrincipals() { + excludedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The identities that are excluded from the access policy rule,
        +     * even if they are listed in the `principals`. For example, you could add a
        +     * Google group to the `principals`, then exclude specific users who belong to
        +     * that group.
        +     * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludedPrincipals to add. + * @return This builder for chaining. + */ + public Builder addExcludedPrincipalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.iam.v3.AccessPolicyRule.Operation operation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicyRule.Operation, + com.google.iam.v3.AccessPolicyRule.Operation.Builder, + com.google.iam.v3.AccessPolicyRule.OperationOrBuilder> + operationBuilder_; + + /** + * + * + *
        +     * Required. Attributes that are used to determine whether this rule applies
        +     * to a request.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the operation field is set. + */ + public boolean hasOperation() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * Required. Attributes that are used to determine whether this rule applies
        +     * to a request.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + public com.google.iam.v3.AccessPolicyRule.Operation getOperation() { + if (operationBuilder_ == null) { + return operation_ == null + ? com.google.iam.v3.AccessPolicyRule.Operation.getDefaultInstance() + : operation_; + } else { + return operationBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Required. Attributes that are used to determine whether this rule applies
        +     * to a request.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOperation(com.google.iam.v3.AccessPolicyRule.Operation value) { + if (operationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + } else { + operationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Attributes that are used to determine whether this rule applies
        +     * to a request.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOperation( + com.google.iam.v3.AccessPolicyRule.Operation.Builder builderForValue) { + if (operationBuilder_ == null) { + operation_ = builderForValue.build(); + } else { + operationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Attributes that are used to determine whether this rule applies
        +     * to a request.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOperation(com.google.iam.v3.AccessPolicyRule.Operation value) { + if (operationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && operation_ != null + && operation_ != com.google.iam.v3.AccessPolicyRule.Operation.getDefaultInstance()) { + getOperationBuilder().mergeFrom(value); + } else { + operation_ = value; + } + } else { + operationBuilder_.mergeFrom(value); + } + if (operation_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Required. Attributes that are used to determine whether this rule applies
        +     * to a request.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOperation() { + bitField0_ = (bitField0_ & ~0x00000010); + operation_ = null; + if (operationBuilder_ != null) { + operationBuilder_.dispose(); + operationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Attributes that are used to determine whether this rule applies
        +     * to a request.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicyRule.Operation.Builder getOperationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetOperationFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. Attributes that are used to determine whether this rule applies
        +     * to a request.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicyRule.OperationOrBuilder getOperationOrBuilder() { + if (operationBuilder_ != null) { + return operationBuilder_.getMessageOrBuilder(); + } else { + return operation_ == null + ? com.google.iam.v3.AccessPolicyRule.Operation.getDefaultInstance() + : operation_; + } + } + + /** + * + * + *
        +     * Required. Attributes that are used to determine whether this rule applies
        +     * to a request.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicyRule.Operation, + com.google.iam.v3.AccessPolicyRule.Operation.Builder, + com.google.iam.v3.AccessPolicyRule.OperationOrBuilder> + internalGetOperationFieldBuilder() { + if (operationBuilder_ == null) { + operationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicyRule.Operation, + com.google.iam.v3.AccessPolicyRule.Operation.Builder, + com.google.iam.v3.AccessPolicyRule.OperationOrBuilder>( + getOperation(), getParentForChildren(), isClean()); + operation_ = null; + } + return operationBuilder_; + } + + private static final class ConditionsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.type.ExprOrBuilder, com.google.type.Expr> { + @java.lang.Override + public com.google.type.Expr build(com.google.type.ExprOrBuilder val) { + if (val instanceof com.google.type.Expr) { + return (com.google.type.Expr) val; + } + return ((com.google.type.Expr.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return ConditionsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ConditionsConverter conditionsConverter = new ConditionsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.type.ExprOrBuilder, + com.google.type.Expr, + com.google.type.Expr.Builder> + conditions_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.type.ExprOrBuilder, + com.google.type.Expr, + com.google.type.Expr.Builder> + internalGetConditions() { + if (conditions_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(conditionsConverter); + } + return conditions_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.type.ExprOrBuilder, + com.google.type.Expr, + com.google.type.Expr.Builder> + internalGetMutableConditions() { + if (conditions_ == null) { + conditions_ = new com.google.protobuf.MapFieldBuilder<>(conditionsConverter); + } + bitField0_ |= 0x00000020; + onChanged(); + return conditions_; + } + + public int getConditionsCount() { + return internalGetConditions().ensureBuilderMap().size(); + } + + /** + * + * + *
        +     * Optional. The conditions that determine whether this rule applies to a
        +     * request. Conditions are identified by their key, which is the FQDN of the
        +     * service that they are relevant to. For example:
        +     *
        +     * ```
        +     * "conditions": {
        +     * "iam.googleapis.com": {
        +     * "expression": <cel expression>
        +     * }
        +     * }
        +     * ```
        +     *
        +     * Each rule is evaluated independently. If this rule does not apply
        +     * to a request, other rules might still apply.
        +     * Currently supported keys are as follows:
        +     *
        +     *
        +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +     * resource fields.
        +     *
        +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +     * [resource
        +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +     * combine them using boolean and logical operators. Other functions and
        +     * operators are not supported.
        +     * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsConditions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConditions().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getConditionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConditions() { + return getConditionsMap(); + } + + /** + * + * + *
        +     * Optional. The conditions that determine whether this rule applies to a
        +     * request. Conditions are identified by their key, which is the FQDN of the
        +     * service that they are relevant to. For example:
        +     *
        +     * ```
        +     * "conditions": {
        +     * "iam.googleapis.com": {
        +     * "expression": <cel expression>
        +     * }
        +     * }
        +     * ```
        +     *
        +     * Each rule is evaluated independently. If this rule does not apply
        +     * to a request, other rules might still apply.
        +     * Currently supported keys are as follows:
        +     *
        +     *
        +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +     * resource fields.
        +     *
        +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +     * [resource
        +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +     * combine them using boolean and logical operators. Other functions and
        +     * operators are not supported.
        +     * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getConditionsMap() { + return internalGetConditions().getImmutableMap(); + } + + /** + * + * + *
        +     * Optional. The conditions that determine whether this rule applies to a
        +     * request. Conditions are identified by their key, which is the FQDN of the
        +     * service that they are relevant to. For example:
        +     *
        +     * ```
        +     * "conditions": {
        +     * "iam.googleapis.com": {
        +     * "expression": <cel expression>
        +     * }
        +     * }
        +     * ```
        +     *
        +     * Each rule is evaluated independently. If this rule does not apply
        +     * to a request, other rules might still apply.
        +     * Currently supported keys are as follows:
        +     *
        +     *
        +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +     * resource fields.
        +     *
        +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +     * [resource
        +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +     * combine them using boolean and logical operators. Other functions and
        +     * operators are not supported.
        +     * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.type.Expr getConditionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.type.Expr defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableConditions().ensureBuilderMap(); + return map.containsKey(key) ? conditionsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
        +     * Optional. The conditions that determine whether this rule applies to a
        +     * request. Conditions are identified by their key, which is the FQDN of the
        +     * service that they are relevant to. For example:
        +     *
        +     * ```
        +     * "conditions": {
        +     * "iam.googleapis.com": {
        +     * "expression": <cel expression>
        +     * }
        +     * }
        +     * ```
        +     *
        +     * Each rule is evaluated independently. If this rule does not apply
        +     * to a request, other rules might still apply.
        +     * Currently supported keys are as follows:
        +     *
        +     *
        +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +     * resource fields.
        +     *
        +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +     * [resource
        +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +     * combine them using boolean and logical operators. Other functions and
        +     * operators are not supported.
        +     * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.Expr getConditionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableConditions().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return conditionsConverter.build(map.get(key)); + } + + public Builder clearConditions() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableConditions().clear(); + return this; + } + + /** + * + * + *
        +     * Optional. The conditions that determine whether this rule applies to a
        +     * request. Conditions are identified by their key, which is the FQDN of the
        +     * service that they are relevant to. For example:
        +     *
        +     * ```
        +     * "conditions": {
        +     * "iam.googleapis.com": {
        +     * "expression": <cel expression>
        +     * }
        +     * }
        +     * ```
        +     *
        +     * Each rule is evaluated independently. If this rule does not apply
        +     * to a request, other rules might still apply.
        +     * Currently supported keys are as follows:
        +     *
        +     *
        +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +     * resource fields.
        +     *
        +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +     * [resource
        +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +     * combine them using boolean and logical operators. Other functions and
        +     * operators are not supported.
        +     * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeConditions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableConditions().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableConditions() { + bitField0_ |= 0x00000020; + return internalGetMutableConditions().ensureMessageMap(); + } + + /** + * + * + *
        +     * Optional. The conditions that determine whether this rule applies to a
        +     * request. Conditions are identified by their key, which is the FQDN of the
        +     * service that they are relevant to. For example:
        +     *
        +     * ```
        +     * "conditions": {
        +     * "iam.googleapis.com": {
        +     * "expression": <cel expression>
        +     * }
        +     * }
        +     * ```
        +     *
        +     * Each rule is evaluated independently. If this rule does not apply
        +     * to a request, other rules might still apply.
        +     * Currently supported keys are as follows:
        +     *
        +     *
        +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +     * resource fields.
        +     *
        +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +     * [resource
        +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +     * combine them using boolean and logical operators. Other functions and
        +     * operators are not supported.
        +     * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putConditions(java.lang.String key, com.google.type.Expr value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableConditions().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + + /** + * + * + *
        +     * Optional. The conditions that determine whether this rule applies to a
        +     * request. Conditions are identified by their key, which is the FQDN of the
        +     * service that they are relevant to. For example:
        +     *
        +     * ```
        +     * "conditions": {
        +     * "iam.googleapis.com": {
        +     * "expression": <cel expression>
        +     * }
        +     * }
        +     * ```
        +     *
        +     * Each rule is evaluated independently. If this rule does not apply
        +     * to a request, other rules might still apply.
        +     * Currently supported keys are as follows:
        +     *
        +     *
        +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +     * resource fields.
        +     *
        +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +     * [resource
        +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +     * combine them using boolean and logical operators. Other functions and
        +     * operators are not supported.
        +     * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllConditions(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableConditions().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + /** + * + * + *
        +     * Optional. The conditions that determine whether this rule applies to a
        +     * request. Conditions are identified by their key, which is the FQDN of the
        +     * service that they are relevant to. For example:
        +     *
        +     * ```
        +     * "conditions": {
        +     * "iam.googleapis.com": {
        +     * "expression": <cel expression>
        +     * }
        +     * }
        +     * ```
        +     *
        +     * Each rule is evaluated independently. If this rule does not apply
        +     * to a request, other rules might still apply.
        +     * Currently supported keys are as follows:
        +     *
        +     *
        +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +     * resource fields.
        +     *
        +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +     * [resource
        +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +     * combine them using boolean and logical operators. Other functions and
        +     * operators are not supported.
        +     * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.Expr.Builder putConditionsBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableConditions().ensureBuilderMap(); + com.google.type.ExprOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.type.Expr.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.type.Expr) { + entry = ((com.google.type.Expr) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.type.Expr.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.AccessPolicyRule) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.AccessPolicyRule) + private static final com.google.iam.v3.AccessPolicyRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.AccessPolicyRule(); + } + + public static com.google.iam.v3.AccessPolicyRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessPolicyRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.AccessPolicyRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyRuleOrBuilder.java new file mode 100644 index 000000000000..d9da945e445a --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/AccessPolicyRuleOrBuilder.java @@ -0,0 +1,638 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policy_resources.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface AccessPolicyRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.AccessPolicyRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Customer specified description of the rule. Must be less than or
        +   * equal to 256 characters.
        +   * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
        +   * Optional. Customer specified description of the rule. Must be less than or
        +   * equal to 256 characters.
        +   * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
        +   * Optional. Customer specified description of the rule. Must be less than or
        +   * equal to 256 characters.
        +   * 
        + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
        +   * Required. The effect of the rule.
        +   * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the effect field is set. + */ + boolean hasEffect(); + + /** + * + * + *
        +   * Required. The effect of the rule.
        +   * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for effect. + */ + int getEffectValue(); + + /** + * + * + *
        +   * Required. The effect of the rule.
        +   * 
        + * + * + * optional .google.iam.v3.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The effect. + */ + com.google.iam.v3.AccessPolicyRule.Effect getEffect(); + + /** + * + * + *
        +   * Required. The identities for which this rule's effect governs using one or
        +   * more permissions on Google Cloud resources. This field can contain the
        +   * following values:
        +   *
        +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +   * example, `principal://goog/subject/alice@example.com`.
        +   *
        +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +   * A Google Cloud service account. For example,
        +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +   *
        +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +   * `principalSet://goog/group/admins@example.com`.
        +   *
        +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +   * principals associated with the specified Google Workspace or Cloud
        +   * Identity customer ID. For example,
        +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +   *
        +   *
        +   * If an identifier that was previously set on a policy is soft deleted, then
        +   * calls to read that policy will return the identifier with a deleted
        +   * prefix. Users cannot set identifiers with this syntax.
        +   *
        +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +   * Google Account that was deleted recently. For example,
        +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +   * the Google Account is recovered, this identifier reverts to the standard
        +   * identifier for a Google Account.
        +   *
        +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +   * that was deleted recently. For example,
        +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +   * If the Google group is restored, this identifier reverts to the standard
        +   * identifier for a Google group.
        +   *
        +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +   * A Google Cloud service account that was deleted recently. For example,
        +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +   * If the service account is undeleted, this identifier reverts to the
        +   * standard identifier for a service account.
        +   * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the principals. + */ + java.util.List getPrincipalsList(); + + /** + * + * + *
        +   * Required. The identities for which this rule's effect governs using one or
        +   * more permissions on Google Cloud resources. This field can contain the
        +   * following values:
        +   *
        +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +   * example, `principal://goog/subject/alice@example.com`.
        +   *
        +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +   * A Google Cloud service account. For example,
        +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +   *
        +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +   * `principalSet://goog/group/admins@example.com`.
        +   *
        +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +   * principals associated with the specified Google Workspace or Cloud
        +   * Identity customer ID. For example,
        +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +   *
        +   *
        +   * If an identifier that was previously set on a policy is soft deleted, then
        +   * calls to read that policy will return the identifier with a deleted
        +   * prefix. Users cannot set identifiers with this syntax.
        +   *
        +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +   * Google Account that was deleted recently. For example,
        +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +   * the Google Account is recovered, this identifier reverts to the standard
        +   * identifier for a Google Account.
        +   *
        +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +   * that was deleted recently. For example,
        +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +   * If the Google group is restored, this identifier reverts to the standard
        +   * identifier for a Google group.
        +   *
        +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +   * A Google Cloud service account that was deleted recently. For example,
        +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +   * If the service account is undeleted, this identifier reverts to the
        +   * standard identifier for a service account.
        +   * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of principals. + */ + int getPrincipalsCount(); + + /** + * + * + *
        +   * Required. The identities for which this rule's effect governs using one or
        +   * more permissions on Google Cloud resources. This field can contain the
        +   * following values:
        +   *
        +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +   * example, `principal://goog/subject/alice@example.com`.
        +   *
        +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +   * A Google Cloud service account. For example,
        +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +   *
        +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +   * `principalSet://goog/group/admins@example.com`.
        +   *
        +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +   * principals associated with the specified Google Workspace or Cloud
        +   * Identity customer ID. For example,
        +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +   *
        +   *
        +   * If an identifier that was previously set on a policy is soft deleted, then
        +   * calls to read that policy will return the identifier with a deleted
        +   * prefix. Users cannot set identifiers with this syntax.
        +   *
        +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +   * Google Account that was deleted recently. For example,
        +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +   * the Google Account is recovered, this identifier reverts to the standard
        +   * identifier for a Google Account.
        +   *
        +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +   * that was deleted recently. For example,
        +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +   * If the Google group is restored, this identifier reverts to the standard
        +   * identifier for a Google group.
        +   *
        +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +   * A Google Cloud service account that was deleted recently. For example,
        +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +   * If the service account is undeleted, this identifier reverts to the
        +   * standard identifier for a service account.
        +   * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The principals at the given index. + */ + java.lang.String getPrincipals(int index); + + /** + * + * + *
        +   * Required. The identities for which this rule's effect governs using one or
        +   * more permissions on Google Cloud resources. This field can contain the
        +   * following values:
        +   *
        +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
        +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
        +   * example, `principal://goog/subject/alice@example.com`.
        +   *
        +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
        +   * A Google Cloud service account. For example,
        +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
        +   *
        +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
        +   * `principalSet://goog/group/admins@example.com`.
        +   *
        +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
        +   * principals associated with the specified Google Workspace or Cloud
        +   * Identity customer ID. For example,
        +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
        +   *
        +   *
        +   * If an identifier that was previously set on a policy is soft deleted, then
        +   * calls to read that policy will return the identifier with a deleted
        +   * prefix. Users cannot set identifiers with this syntax.
        +   *
        +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
        +   * Google Account that was deleted recently. For example,
        +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
        +   * the Google Account is recovered, this identifier reverts to the standard
        +   * identifier for a Google Account.
        +   *
        +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
        +   * that was deleted recently. For example,
        +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
        +   * If the Google group is restored, this identifier reverts to the standard
        +   * identifier for a Google group.
        +   *
        +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
        +   * A Google Cloud service account that was deleted recently. For example,
        +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
        +   * If the service account is undeleted, this identifier reverts to the
        +   * standard identifier for a service account.
        +   * 
        + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the principals at the given index. + */ + com.google.protobuf.ByteString getPrincipalsBytes(int index); + + /** + * + * + *
        +   * Optional. The identities that are excluded from the access policy rule,
        +   * even if they are listed in the `principals`. For example, you could add a
        +   * Google group to the `principals`, then exclude specific users who belong to
        +   * that group.
        +   * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludedPrincipals. + */ + java.util.List getExcludedPrincipalsList(); + + /** + * + * + *
        +   * Optional. The identities that are excluded from the access policy rule,
        +   * even if they are listed in the `principals`. For example, you could add a
        +   * Google group to the `principals`, then exclude specific users who belong to
        +   * that group.
        +   * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludedPrincipals. + */ + int getExcludedPrincipalsCount(); + + /** + * + * + *
        +   * Optional. The identities that are excluded from the access policy rule,
        +   * even if they are listed in the `principals`. For example, you could add a
        +   * Google group to the `principals`, then exclude specific users who belong to
        +   * that group.
        +   * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludedPrincipals at the given index. + */ + java.lang.String getExcludedPrincipals(int index); + + /** + * + * + *
        +   * Optional. The identities that are excluded from the access policy rule,
        +   * even if they are listed in the `principals`. For example, you could add a
        +   * Google group to the `principals`, then exclude specific users who belong to
        +   * that group.
        +   * 
        + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludedPrincipals at the given index. + */ + com.google.protobuf.ByteString getExcludedPrincipalsBytes(int index); + + /** + * + * + *
        +   * Required. Attributes that are used to determine whether this rule applies
        +   * to a request.
        +   * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the operation field is set. + */ + boolean hasOperation(); + + /** + * + * + *
        +   * Required. Attributes that are used to determine whether this rule applies
        +   * to a request.
        +   * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + com.google.iam.v3.AccessPolicyRule.Operation getOperation(); + + /** + * + * + *
        +   * Required. Attributes that are used to determine whether this rule applies
        +   * to a request.
        +   * 
        + * + * + * .google.iam.v3.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3.AccessPolicyRule.OperationOrBuilder getOperationOrBuilder(); + + /** + * + * + *
        +   * Optional. The conditions that determine whether this rule applies to a
        +   * request. Conditions are identified by their key, which is the FQDN of the
        +   * service that they are relevant to. For example:
        +   *
        +   * ```
        +   * "conditions": {
        +   * "iam.googleapis.com": {
        +   * "expression": <cel expression>
        +   * }
        +   * }
        +   * ```
        +   *
        +   * Each rule is evaluated independently. If this rule does not apply
        +   * to a request, other rules might still apply.
        +   * Currently supported keys are as follows:
        +   *
        +   *
        +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +   * resource fields.
        +   *
        +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +   * [resource
        +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +   * combine them using boolean and logical operators. Other functions and
        +   * operators are not supported.
        +   * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getConditionsCount(); + + /** + * + * + *
        +   * Optional. The conditions that determine whether this rule applies to a
        +   * request. Conditions are identified by their key, which is the FQDN of the
        +   * service that they are relevant to. For example:
        +   *
        +   * ```
        +   * "conditions": {
        +   * "iam.googleapis.com": {
        +   * "expression": <cel expression>
        +   * }
        +   * }
        +   * ```
        +   *
        +   * Each rule is evaluated independently. If this rule does not apply
        +   * to a request, other rules might still apply.
        +   * Currently supported keys are as follows:
        +   *
        +   *
        +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +   * resource fields.
        +   *
        +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +   * [resource
        +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +   * combine them using boolean and logical operators. Other functions and
        +   * operators are not supported.
        +   * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsConditions(java.lang.String key); + + /** Use {@link #getConditionsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getConditions(); + + /** + * + * + *
        +   * Optional. The conditions that determine whether this rule applies to a
        +   * request. Conditions are identified by their key, which is the FQDN of the
        +   * service that they are relevant to. For example:
        +   *
        +   * ```
        +   * "conditions": {
        +   * "iam.googleapis.com": {
        +   * "expression": <cel expression>
        +   * }
        +   * }
        +   * ```
        +   *
        +   * Each rule is evaluated independently. If this rule does not apply
        +   * to a request, other rules might still apply.
        +   * Currently supported keys are as follows:
        +   *
        +   *
        +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +   * resource fields.
        +   *
        +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +   * [resource
        +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +   * combine them using boolean and logical operators. Other functions and
        +   * operators are not supported.
        +   * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getConditionsMap(); + + /** + * + * + *
        +   * Optional. The conditions that determine whether this rule applies to a
        +   * request. Conditions are identified by their key, which is the FQDN of the
        +   * service that they are relevant to. For example:
        +   *
        +   * ```
        +   * "conditions": {
        +   * "iam.googleapis.com": {
        +   * "expression": <cel expression>
        +   * }
        +   * }
        +   * ```
        +   *
        +   * Each rule is evaluated independently. If this rule does not apply
        +   * to a request, other rules might still apply.
        +   * Currently supported keys are as follows:
        +   *
        +   *
        +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +   * resource fields.
        +   *
        +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +   * [resource
        +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +   * combine them using boolean and logical operators. Other functions and
        +   * operators are not supported.
        +   * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.type.Expr getConditionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.type.Expr defaultValue); + + /** + * + * + *
        +   * Optional. The conditions that determine whether this rule applies to a
        +   * request. Conditions are identified by their key, which is the FQDN of the
        +   * service that they are relevant to. For example:
        +   *
        +   * ```
        +   * "conditions": {
        +   * "iam.googleapis.com": {
        +   * "expression": <cel expression>
        +   * }
        +   * }
        +   * ```
        +   *
        +   * Each rule is evaluated independently. If this rule does not apply
        +   * to a request, other rules might still apply.
        +   * Currently supported keys are as follows:
        +   *
        +   *
        +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
        +   * resource fields.
        +   *
        +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
        +   * [resource
        +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
        +   * combine them using boolean and logical operators. Other functions and
        +   * operators are not supported.
        +   * 
        + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.type.Expr getConditionsOrThrow(java.lang.String key); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/CreateAccessPolicyRequest.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/CreateAccessPolicyRequest.java new file mode 100644 index 000000000000..e77c0d58dba1 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/CreateAccessPolicyRequest.java @@ -0,0 +1,1311 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Request message for CreateAccessPolicy method.
        + * 
        + * + * Protobuf type {@code google.iam.v3.CreateAccessPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateAccessPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.CreateAccessPolicyRequest) + CreateAccessPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateAccessPolicyRequest"); + } + + // Use CreateAccessPolicyRequest.newBuilder() to construct. + private CreateAccessPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAccessPolicyRequest() { + parent_ = ""; + accessPolicyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_CreateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_CreateAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.CreateAccessPolicyRequest.class, + com.google.iam.v3.CreateAccessPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
        +   * Required. The parent resource where this access policy will be created.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}`
        +   * `projects/{project_number}/locations/{location}`
        +   * `folders/{folder_id}/locations/{location}`
        +   * `organizations/{organization_id}/locations/{location}`
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The parent resource where this access policy will be created.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}`
        +   * `projects/{project_number}/locations/{location}`
        +   * `folders/{folder_id}/locations/{location}`
        +   * `organizations/{organization_id}/locations/{location}`
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCESS_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object accessPolicyId_ = ""; + + /** + * + * + *
        +   * Required. The ID to use for the access policy, which
        +   * will become the final component of the access policy's
        +   * resource name.
        +   *
        +   * This value must start with a lowercase letter followed by up to 62
        +   * lowercase letters, numbers, hyphens, or dots. Pattern,
        +   * /[a-z][a-z0-9-\.]{2,62}/.
        +   *
        +   * This value must be unique among all access policies with the same parent.
        +   * 
        + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The accessPolicyId. + */ + @java.lang.Override + public java.lang.String getAccessPolicyId() { + java.lang.Object ref = accessPolicyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessPolicyId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The ID to use for the access policy, which
        +   * will become the final component of the access policy's
        +   * resource name.
        +   *
        +   * This value must start with a lowercase letter followed by up to 62
        +   * lowercase letters, numbers, hyphens, or dots. Pattern,
        +   * /[a-z][a-z0-9-\.]{2,62}/.
        +   *
        +   * This value must be unique among all access policies with the same parent.
        +   * 
        + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for accessPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccessPolicyIdBytes() { + java.lang.Object ref = accessPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accessPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCESS_POLICY_FIELD_NUMBER = 3; + private com.google.iam.v3.AccessPolicy accessPolicy_; + + /** + * + * + *
        +   * Required. The access policy to create.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + @java.lang.Override + public boolean hasAccessPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Required. The access policy to create.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicy getAccessPolicy() { + return accessPolicy_ == null + ? com.google.iam.v3.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + + /** + * + * + *
        +   * Required. The access policy to create.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyOrBuilder getAccessPolicyOrBuilder() { + return accessPolicy_ == null + ? com.google.iam.v3.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_ = false; + + /** + * + * + *
        +   * Optional. If set, validate the request and preview the creation, but do not
        +   * actually post it.
        +   * 
        + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accessPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, accessPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAccessPolicy()); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accessPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, accessPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAccessPolicy()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.CreateAccessPolicyRequest)) { + return super.equals(obj); + } + com.google.iam.v3.CreateAccessPolicyRequest other = + (com.google.iam.v3.CreateAccessPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAccessPolicyId().equals(other.getAccessPolicyId())) return false; + if (hasAccessPolicy() != other.hasAccessPolicy()) return false; + if (hasAccessPolicy()) { + if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + 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) + ACCESS_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAccessPolicyId().hashCode(); + if (hasAccessPolicy()) { + hash = (37 * hash) + ACCESS_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAccessPolicy().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.CreateAccessPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for CreateAccessPolicy method.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.CreateAccessPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.CreateAccessPolicyRequest) + com.google.iam.v3.CreateAccessPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_CreateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_CreateAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.CreateAccessPolicyRequest.class, + com.google.iam.v3.CreateAccessPolicyRequest.Builder.class); + } + + // Construct using com.google.iam.v3.CreateAccessPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAccessPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + accessPolicyId_ = ""; + accessPolicy_ = null; + if (accessPolicyBuilder_ != null) { + accessPolicyBuilder_.dispose(); + accessPolicyBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_CreateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.CreateAccessPolicyRequest getDefaultInstanceForType() { + return com.google.iam.v3.CreateAccessPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.CreateAccessPolicyRequest build() { + com.google.iam.v3.CreateAccessPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.CreateAccessPolicyRequest buildPartial() { + com.google.iam.v3.CreateAccessPolicyRequest result = + new com.google.iam.v3.CreateAccessPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3.CreateAccessPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accessPolicyId_ = accessPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.accessPolicy_ = + accessPolicyBuilder_ == null ? accessPolicy_ : accessPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.CreateAccessPolicyRequest) { + return mergeFrom((com.google.iam.v3.CreateAccessPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.CreateAccessPolicyRequest other) { + if (other == com.google.iam.v3.CreateAccessPolicyRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAccessPolicyId().isEmpty()) { + accessPolicyId_ = other.accessPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAccessPolicy()) { + mergeAccessPolicy(other.getAccessPolicy()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + accessPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAccessPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
        +     * Required. The parent resource where this access policy will be created.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The parent resource where this access policy will be created.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The parent resource where this access policy will be created.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent resource where this access policy will be created.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent resource where this access policy will be created.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object accessPolicyId_ = ""; + + /** + * + * + *
        +     * Required. The ID to use for the access policy, which
        +     * will become the final component of the access policy's
        +     * resource name.
        +     *
        +     * This value must start with a lowercase letter followed by up to 62
        +     * lowercase letters, numbers, hyphens, or dots. Pattern,
        +     * /[a-z][a-z0-9-\.]{2,62}/.
        +     *
        +     * This value must be unique among all access policies with the same parent.
        +     * 
        + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The accessPolicyId. + */ + public java.lang.String getAccessPolicyId() { + java.lang.Object ref = accessPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The ID to use for the access policy, which
        +     * will become the final component of the access policy's
        +     * resource name.
        +     *
        +     * This value must start with a lowercase letter followed by up to 62
        +     * lowercase letters, numbers, hyphens, or dots. Pattern,
        +     * /[a-z][a-z0-9-\.]{2,62}/.
        +     *
        +     * This value must be unique among all access policies with the same parent.
        +     * 
        + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for accessPolicyId. + */ + public com.google.protobuf.ByteString getAccessPolicyIdBytes() { + java.lang.Object ref = accessPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accessPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The ID to use for the access policy, which
        +     * will become the final component of the access policy's
        +     * resource name.
        +     *
        +     * This value must start with a lowercase letter followed by up to 62
        +     * lowercase letters, numbers, hyphens, or dots. Pattern,
        +     * /[a-z][a-z0-9-\.]{2,62}/.
        +     *
        +     * This value must be unique among all access policies with the same parent.
        +     * 
        + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The accessPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAccessPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accessPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ID to use for the access policy, which
        +     * will become the final component of the access policy's
        +     * resource name.
        +     *
        +     * This value must start with a lowercase letter followed by up to 62
        +     * lowercase letters, numbers, hyphens, or dots. Pattern,
        +     * /[a-z][a-z0-9-\.]{2,62}/.
        +     *
        +     * This value must be unique among all access policies with the same parent.
        +     * 
        + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAccessPolicyId() { + accessPolicyId_ = getDefaultInstance().getAccessPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ID to use for the access policy, which
        +     * will become the final component of the access policy's
        +     * resource name.
        +     *
        +     * This value must start with a lowercase letter followed by up to 62
        +     * lowercase letters, numbers, hyphens, or dots. Pattern,
        +     * /[a-z][a-z0-9-\.]{2,62}/.
        +     *
        +     * This value must be unique among all access policies with the same parent.
        +     * 
        + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for accessPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAccessPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.iam.v3.AccessPolicy accessPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicy, + com.google.iam.v3.AccessPolicy.Builder, + com.google.iam.v3.AccessPolicyOrBuilder> + accessPolicyBuilder_; + + /** + * + * + *
        +     * Required. The access policy to create.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + public boolean hasAccessPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Required. The access policy to create.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + public com.google.iam.v3.AccessPolicy getAccessPolicy() { + if (accessPolicyBuilder_ == null) { + return accessPolicy_ == null + ? com.google.iam.v3.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } else { + return accessPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Required. The access policy to create.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessPolicy(com.google.iam.v3.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessPolicy_ = value; + } else { + accessPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The access policy to create.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessPolicy(com.google.iam.v3.AccessPolicy.Builder builderForValue) { + if (accessPolicyBuilder_ == null) { + accessPolicy_ = builderForValue.build(); + } else { + accessPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The access policy to create.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccessPolicy(com.google.iam.v3.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && accessPolicy_ != null + && accessPolicy_ != com.google.iam.v3.AccessPolicy.getDefaultInstance()) { + getAccessPolicyBuilder().mergeFrom(value); + } else { + accessPolicy_ = value; + } + } else { + accessPolicyBuilder_.mergeFrom(value); + } + if (accessPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Required. The access policy to create.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccessPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + accessPolicy_ = null; + if (accessPolicyBuilder_ != null) { + accessPolicyBuilder_.dispose(); + accessPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The access policy to create.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicy.Builder getAccessPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAccessPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. The access policy to create.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicyOrBuilder getAccessPolicyOrBuilder() { + if (accessPolicyBuilder_ != null) { + return accessPolicyBuilder_.getMessageOrBuilder(); + } else { + return accessPolicy_ == null + ? com.google.iam.v3.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + } + + /** + * + * + *
        +     * Required. The access policy to create.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicy, + com.google.iam.v3.AccessPolicy.Builder, + com.google.iam.v3.AccessPolicyOrBuilder> + internalGetAccessPolicyFieldBuilder() { + if (accessPolicyBuilder_ == null) { + accessPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicy, + com.google.iam.v3.AccessPolicy.Builder, + com.google.iam.v3.AccessPolicyOrBuilder>( + getAccessPolicy(), getParentForChildren(), isClean()); + accessPolicy_ = null; + } + return accessPolicyBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
        +     * Optional. If set, validate the request and preview the creation, but do not
        +     * actually post it.
        +     * 
        + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
        +     * Optional. If set, validate the request and preview the creation, but do not
        +     * actually post it.
        +     * 
        + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. If set, validate the request and preview the creation, but do not
        +     * actually post it.
        +     * 
        + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.CreateAccessPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.CreateAccessPolicyRequest) + private static final com.google.iam.v3.CreateAccessPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.CreateAccessPolicyRequest(); + } + + public static com.google.iam.v3.CreateAccessPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAccessPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.CreateAccessPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/CreateAccessPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/CreateAccessPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..e1d179f4a016 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/CreateAccessPolicyRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface CreateAccessPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.CreateAccessPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The parent resource where this access policy will be created.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}`
        +   * `projects/{project_number}/locations/{location}`
        +   * `folders/{folder_id}/locations/{location}`
        +   * `organizations/{organization_id}/locations/{location}`
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
        +   * Required. The parent resource where this access policy will be created.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}`
        +   * `projects/{project_number}/locations/{location}`
        +   * `folders/{folder_id}/locations/{location}`
        +   * `organizations/{organization_id}/locations/{location}`
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Required. The ID to use for the access policy, which
        +   * will become the final component of the access policy's
        +   * resource name.
        +   *
        +   * This value must start with a lowercase letter followed by up to 62
        +   * lowercase letters, numbers, hyphens, or dots. Pattern,
        +   * /[a-z][a-z0-9-\.]{2,62}/.
        +   *
        +   * This value must be unique among all access policies with the same parent.
        +   * 
        + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The accessPolicyId. + */ + java.lang.String getAccessPolicyId(); + + /** + * + * + *
        +   * Required. The ID to use for the access policy, which
        +   * will become the final component of the access policy's
        +   * resource name.
        +   *
        +   * This value must start with a lowercase letter followed by up to 62
        +   * lowercase letters, numbers, hyphens, or dots. Pattern,
        +   * /[a-z][a-z0-9-\.]{2,62}/.
        +   *
        +   * This value must be unique among all access policies with the same parent.
        +   * 
        + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for accessPolicyId. + */ + com.google.protobuf.ByteString getAccessPolicyIdBytes(); + + /** + * + * + *
        +   * Required. The access policy to create.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + boolean hasAccessPolicy(); + + /** + * + * + *
        +   * Required. The access policy to create.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + com.google.iam.v3.AccessPolicy getAccessPolicy(); + + /** + * + * + *
        +   * Required. The access policy to create.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3.AccessPolicyOrBuilder getAccessPolicyOrBuilder(); + + /** + * + * + *
        +   * Optional. If set, validate the request and preview the creation, but do not
        +   * actually post it.
        +   * 
        + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/DeleteAccessPolicyRequest.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/DeleteAccessPolicyRequest.java new file mode 100644 index 000000000000..5cc2dbdd4ee0 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/DeleteAccessPolicyRequest.java @@ -0,0 +1,1049 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Request message for DeleteAccessPolicy method.
        + * 
        + * + * Protobuf type {@code google.iam.v3.DeleteAccessPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAccessPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.DeleteAccessPolicyRequest) + DeleteAccessPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteAccessPolicyRequest"); + } + + // Use DeleteAccessPolicyRequest.newBuilder() to construct. + private DeleteAccessPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAccessPolicyRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_DeleteAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_DeleteAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.DeleteAccessPolicyRequest.class, + com.google.iam.v3.DeleteAccessPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The name of the access policy to delete.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the access policy to delete.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * 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; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
        +   * Optional. The etag of the access policy. If this is provided, it must match
        +   * the server's etag.
        +   * 
        + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The etag of the access policy. If this is provided, it must match
        +   * the server's etag.
        +   * 
        + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + + /** + * + * + *
        +   * Optional. If set, validate the request and preview the deletion, but do not
        +   * actually post it.
        +   * 
        + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int FORCE_FIELD_NUMBER = 4; + private boolean force_ = false; + + /** + * + * + *
        +   * Optional. If set to true, the request will force the deletion of the Policy
        +   * even if the Policy references PolicyBindings.
        +   * 
        + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + if (force_ != false) { + output.writeBool(4, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.DeleteAccessPolicyRequest)) { + return super.equals(obj); + } + com.google.iam.v3.DeleteAccessPolicyRequest other = + (com.google.iam.v3.DeleteAccessPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.DeleteAccessPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for DeleteAccessPolicy method.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.DeleteAccessPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.DeleteAccessPolicyRequest) + com.google.iam.v3.DeleteAccessPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_DeleteAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_DeleteAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.DeleteAccessPolicyRequest.class, + com.google.iam.v3.DeleteAccessPolicyRequest.Builder.class); + } + + // Construct using com.google.iam.v3.DeleteAccessPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_DeleteAccessPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.DeleteAccessPolicyRequest getDefaultInstanceForType() { + return com.google.iam.v3.DeleteAccessPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.DeleteAccessPolicyRequest build() { + com.google.iam.v3.DeleteAccessPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.DeleteAccessPolicyRequest buildPartial() { + com.google.iam.v3.DeleteAccessPolicyRequest result = + new com.google.iam.v3.DeleteAccessPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3.DeleteAccessPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.DeleteAccessPolicyRequest) { + return mergeFrom((com.google.iam.v3.DeleteAccessPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.DeleteAccessPolicyRequest other) { + if (other == com.google.iam.v3.DeleteAccessPolicyRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The name of the access policy to delete.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the access policy to delete.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the access policy to delete.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the access policy to delete.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the access policy to delete.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
        +     * Optional. The etag of the access policy. If this is provided, it must match
        +     * the server's etag.
        +     * 
        + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The etag of the access policy. If this is provided, it must match
        +     * the server's etag.
        +     * 
        + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The etag of the access policy. If this is provided, it must match
        +     * the server's etag.
        +     * 
        + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The etag of the access policy. If this is provided, it must match
        +     * the server's etag.
        +     * 
        + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The etag of the access policy. If this is provided, it must match
        +     * the server's etag.
        +     * 
        + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
        +     * Optional. If set, validate the request and preview the deletion, but do not
        +     * actually post it.
        +     * 
        + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
        +     * Optional. If set, validate the request and preview the deletion, but do not
        +     * actually post it.
        +     * 
        + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. If set, validate the request and preview the deletion, but do not
        +     * actually post it.
        +     * 
        + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
        +     * Optional. If set to true, the request will force the deletion of the Policy
        +     * even if the Policy references PolicyBindings.
        +     * 
        + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
        +     * Optional. If set to true, the request will force the deletion of the Policy
        +     * even if the Policy references PolicyBindings.
        +     * 
        + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. If set to true, the request will force the deletion of the Policy
        +     * even if the Policy references PolicyBindings.
        +     * 
        + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000008); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.DeleteAccessPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.DeleteAccessPolicyRequest) + private static final com.google.iam.v3.DeleteAccessPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.DeleteAccessPolicyRequest(); + } + + public static com.google.iam.v3.DeleteAccessPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAccessPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.DeleteAccessPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/DeleteAccessPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/DeleteAccessPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..32a9600570a5 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/DeleteAccessPolicyRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface DeleteAccessPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.DeleteAccessPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the access policy to delete.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The name of the access policy to delete.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Optional. The etag of the access policy. If this is provided, it must match
        +   * the server's etag.
        +   * 
        + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
        +   * Optional. The etag of the access policy. If this is provided, it must match
        +   * the server's etag.
        +   * 
        + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
        +   * Optional. If set, validate the request and preview the deletion, but do not
        +   * actually post it.
        +   * 
        + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
        +   * Optional. If set to true, the request will force the deletion of the Policy
        +   * even if the Policy references PolicyBindings.
        +   * 
        + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/GetAccessPolicyRequest.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/GetAccessPolicyRequest.java new file mode 100644 index 000000000000..a70cbfbdb123 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/GetAccessPolicyRequest.java @@ -0,0 +1,650 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Request message for GetAccessPolicy method.
        + * 
        + * + * Protobuf type {@code google.iam.v3.GetAccessPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetAccessPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.GetAccessPolicyRequest) + GetAccessPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAccessPolicyRequest"); + } + + // Use GetAccessPolicyRequest.newBuilder() to construct. + private GetAccessPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAccessPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_GetAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_GetAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.GetAccessPolicyRequest.class, + com.google.iam.v3.GetAccessPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The name of the access policy to retrieve.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the access policy to retrieve.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.GetAccessPolicyRequest)) { + return super.equals(obj); + } + com.google.iam.v3.GetAccessPolicyRequest other = (com.google.iam.v3.GetAccessPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.GetAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.GetAccessPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for GetAccessPolicy method.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.GetAccessPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.GetAccessPolicyRequest) + com.google.iam.v3.GetAccessPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_GetAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_GetAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.GetAccessPolicyRequest.class, + com.google.iam.v3.GetAccessPolicyRequest.Builder.class); + } + + // Construct using com.google.iam.v3.GetAccessPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_GetAccessPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.GetAccessPolicyRequest getDefaultInstanceForType() { + return com.google.iam.v3.GetAccessPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.GetAccessPolicyRequest build() { + com.google.iam.v3.GetAccessPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.GetAccessPolicyRequest buildPartial() { + com.google.iam.v3.GetAccessPolicyRequest result = + new com.google.iam.v3.GetAccessPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3.GetAccessPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.GetAccessPolicyRequest) { + return mergeFrom((com.google.iam.v3.GetAccessPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.GetAccessPolicyRequest other) { + if (other == com.google.iam.v3.GetAccessPolicyRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The name of the access policy to retrieve.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the access policy to retrieve.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the access policy to retrieve.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the access policy to retrieve.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the access policy to retrieve.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.GetAccessPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.GetAccessPolicyRequest) + private static final com.google.iam.v3.GetAccessPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.GetAccessPolicyRequest(); + } + + public static com.google.iam.v3.GetAccessPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.GetAccessPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/GetAccessPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/GetAccessPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..06601e14caea --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/GetAccessPolicyRequestOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface GetAccessPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.GetAccessPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the access policy to retrieve.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The name of the access policy to retrieve.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesRequest.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesRequest.java new file mode 100644 index 000000000000..4662d9b48367 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesRequest.java @@ -0,0 +1,1002 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Request message for ListAccessPolicies method.
        + * 
        + * + * Protobuf type {@code google.iam.v3.ListAccessPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListAccessPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.ListAccessPoliciesRequest) + ListAccessPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAccessPoliciesRequest"); + } + + // Use ListAccessPoliciesRequest.newBuilder() to construct. + private ListAccessPoliciesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAccessPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.ListAccessPoliciesRequest.class, + com.google.iam.v3.ListAccessPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
        +   * Required. The parent resource, which owns the collection of access policy
        +   * resources.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}`
        +   * `projects/{project_number}/locations/{location}`
        +   * `folders/{folder_id}/locations/{location}`
        +   * `organizations/{organization_id}/locations/{location}`
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The parent resource, which owns the collection of access policy
        +   * resources.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}`
        +   * `projects/{project_number}/locations/{location}`
        +   * `folders/{folder_id}/locations/{location}`
        +   * `organizations/{organization_id}/locations/{location}`
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
        +   * Optional. The maximum number of access policies to return. The
        +   * service may return fewer than this value.
        +   *
        +   * If unspecified, at most 50 access policies will be returned. Valid value
        +   * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +   * Optional. A page token, received from a previous
        +   * `ListAccessPolicies` call. Provide this to retrieve the
        +   * subsequent page.
        +   *
        +   * When paginating, all other parameters provided to
        +   * `ListAccessPolicies` must match the call that provided the
        +   * page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. A page token, received from a previous
        +   * `ListAccessPolicies` call. Provide this to retrieve the
        +   * subsequent page.
        +   *
        +   * When paginating, all other parameters provided to
        +   * `ListAccessPolicies` must match the call that provided the
        +   * page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.ListAccessPoliciesRequest)) { + return super.equals(obj); + } + com.google.iam.v3.ListAccessPoliciesRequest other = + (com.google.iam.v3.ListAccessPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.ListAccessPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for ListAccessPolicies method.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.ListAccessPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.ListAccessPoliciesRequest) + com.google.iam.v3.ListAccessPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.ListAccessPoliciesRequest.class, + com.google.iam.v3.ListAccessPoliciesRequest.Builder.class); + } + + // Construct using com.google.iam.v3.ListAccessPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.ListAccessPoliciesRequest getDefaultInstanceForType() { + return com.google.iam.v3.ListAccessPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.ListAccessPoliciesRequest build() { + com.google.iam.v3.ListAccessPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.ListAccessPoliciesRequest buildPartial() { + com.google.iam.v3.ListAccessPoliciesRequest result = + new com.google.iam.v3.ListAccessPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3.ListAccessPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.ListAccessPoliciesRequest) { + return mergeFrom((com.google.iam.v3.ListAccessPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.ListAccessPoliciesRequest other) { + if (other == com.google.iam.v3.ListAccessPoliciesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
        +     * Required. The parent resource, which owns the collection of access policy
        +     * resources.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The parent resource, which owns the collection of access policy
        +     * resources.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The parent resource, which owns the collection of access policy
        +     * resources.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent resource, which owns the collection of access policy
        +     * resources.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The parent resource, which owns the collection of access policy
        +     * resources.
        +     *
        +     * Format:
        +     * `projects/{project_id}/locations/{location}`
        +     * `projects/{project_number}/locations/{location}`
        +     * `folders/{folder_id}/locations/{location}`
        +     * `organizations/{organization_id}/locations/{location}`
        +     * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
        +     * Optional. The maximum number of access policies to return. The
        +     * service may return fewer than this value.
        +     *
        +     * If unspecified, at most 50 access policies will be returned. Valid value
        +     * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
        +     * Optional. The maximum number of access policies to return. The
        +     * service may return fewer than this value.
        +     *
        +     * If unspecified, at most 50 access policies will be returned. Valid value
        +     * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The maximum number of access policies to return. The
        +     * service may return fewer than this value.
        +     *
        +     * If unspecified, at most 50 access policies will be returned. Valid value
        +     * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `ListAccessPolicies` call. Provide this to retrieve the
        +     * subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `ListAccessPolicies` must match the call that provided the
        +     * page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `ListAccessPolicies` call. Provide this to retrieve the
        +     * subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `ListAccessPolicies` must match the call that provided the
        +     * page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `ListAccessPolicies` call. Provide this to retrieve the
        +     * subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `ListAccessPolicies` must match the call that provided the
        +     * page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `ListAccessPolicies` call. Provide this to retrieve the
        +     * subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `ListAccessPolicies` must match the call that provided the
        +     * page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `ListAccessPolicies` call. Provide this to retrieve the
        +     * subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `ListAccessPolicies` must match the call that provided the
        +     * page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.ListAccessPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.ListAccessPoliciesRequest) + private static final com.google.iam.v3.ListAccessPoliciesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.ListAccessPoliciesRequest(); + } + + public static com.google.iam.v3.ListAccessPoliciesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.ListAccessPoliciesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..17b89df7620e --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface ListAccessPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.ListAccessPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The parent resource, which owns the collection of access policy
        +   * resources.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}`
        +   * `projects/{project_number}/locations/{location}`
        +   * `folders/{folder_id}/locations/{location}`
        +   * `organizations/{organization_id}/locations/{location}`
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
        +   * Required. The parent resource, which owns the collection of access policy
        +   * resources.
        +   *
        +   * Format:
        +   * `projects/{project_id}/locations/{location}`
        +   * `projects/{project_number}/locations/{location}`
        +   * `folders/{folder_id}/locations/{location}`
        +   * `organizations/{organization_id}/locations/{location}`
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Optional. The maximum number of access policies to return. The
        +   * service may return fewer than this value.
        +   *
        +   * If unspecified, at most 50 access policies will be returned. Valid value
        +   * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous
        +   * `ListAccessPolicies` call. Provide this to retrieve the
        +   * subsequent page.
        +   *
        +   * When paginating, all other parameters provided to
        +   * `ListAccessPolicies` must match the call that provided the
        +   * page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous
        +   * `ListAccessPolicies` call. Provide this to retrieve the
        +   * subsequent page.
        +   *
        +   * When paginating, all other parameters provided to
        +   * `ListAccessPolicies` must match the call that provided the
        +   * page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesResponse.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesResponse.java new file mode 100644 index 000000000000..8a41ebd38b23 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesResponse.java @@ -0,0 +1,1117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Response message for ListAccessPolicies method.
        + * 
        + * + * Protobuf type {@code google.iam.v3.ListAccessPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListAccessPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.ListAccessPoliciesResponse) + ListAccessPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAccessPoliciesResponse"); + } + + // Use ListAccessPoliciesResponse.newBuilder() to construct. + private ListAccessPoliciesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAccessPoliciesResponse() { + accessPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.ListAccessPoliciesResponse.class, + com.google.iam.v3.ListAccessPoliciesResponse.Builder.class); + } + + public static final int ACCESS_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessPolicies_; + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public java.util.List getAccessPoliciesList() { + return accessPolicies_; + } + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public java.util.List + getAccessPoliciesOrBuilderList() { + return accessPolicies_; + } + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public int getAccessPoliciesCount() { + return accessPolicies_.size(); + } + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicy getAccessPolicies(int index) { + return accessPolicies_.get(index); + } + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyOrBuilder getAccessPoliciesOrBuilder(int index) { + return accessPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +   * Optional. A token, which can be sent as `page_token` to retrieve the next
        +   * page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +   * Optional. A token, which can be sent as `page_token` to retrieve the next
        +   * page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 < accessPolicies_.size(); i++) { + output.writeMessage(1, accessPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accessPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.ListAccessPoliciesResponse)) { + return super.equals(obj); + } + com.google.iam.v3.ListAccessPoliciesResponse other = + (com.google.iam.v3.ListAccessPoliciesResponse) obj; + + if (!getAccessPoliciesList().equals(other.getAccessPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccessPoliciesCount() > 0) { + hash = (37 * hash) + ACCESS_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAccessPoliciesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.ListAccessPoliciesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for ListAccessPolicies method.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.ListAccessPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.ListAccessPoliciesResponse) + com.google.iam.v3.ListAccessPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.ListAccessPoliciesResponse.class, + com.google.iam.v3.ListAccessPoliciesResponse.Builder.class); + } + + // Construct using com.google.iam.v3.ListAccessPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessPoliciesBuilder_ == null) { + accessPolicies_ = java.util.Collections.emptyList(); + } else { + accessPolicies_ = null; + accessPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_ListAccessPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.ListAccessPoliciesResponse getDefaultInstanceForType() { + return com.google.iam.v3.ListAccessPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.ListAccessPoliciesResponse build() { + com.google.iam.v3.ListAccessPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.ListAccessPoliciesResponse buildPartial() { + com.google.iam.v3.ListAccessPoliciesResponse result = + new com.google.iam.v3.ListAccessPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v3.ListAccessPoliciesResponse result) { + if (accessPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessPolicies_ = java.util.Collections.unmodifiableList(accessPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessPolicies_ = accessPolicies_; + } else { + result.accessPolicies_ = accessPoliciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.iam.v3.ListAccessPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.ListAccessPoliciesResponse) { + return mergeFrom((com.google.iam.v3.ListAccessPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.ListAccessPoliciesResponse other) { + if (other == com.google.iam.v3.ListAccessPoliciesResponse.getDefaultInstance()) return this; + if (accessPoliciesBuilder_ == null) { + if (!other.accessPolicies_.isEmpty()) { + if (accessPolicies_.isEmpty()) { + accessPolicies_ = other.accessPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessPoliciesIsMutable(); + accessPolicies_.addAll(other.accessPolicies_); + } + onChanged(); + } + } else { + if (!other.accessPolicies_.isEmpty()) { + if (accessPoliciesBuilder_.isEmpty()) { + accessPoliciesBuilder_.dispose(); + accessPoliciesBuilder_ = null; + accessPolicies_ = other.accessPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + accessPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAccessPoliciesFieldBuilder() + : null; + } else { + accessPoliciesBuilder_.addAllMessages(other.accessPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.iam.v3.AccessPolicy m = + input.readMessage(com.google.iam.v3.AccessPolicy.parser(), extensionRegistry); + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(m); + } else { + accessPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessPolicies_ = + java.util.Collections.emptyList(); + + private void ensureAccessPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessPolicies_ = new java.util.ArrayList(accessPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3.AccessPolicy, + com.google.iam.v3.AccessPolicy.Builder, + com.google.iam.v3.AccessPolicyOrBuilder> + accessPoliciesBuilder_; + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public java.util.List getAccessPoliciesList() { + if (accessPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessPolicies_); + } else { + return accessPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public int getAccessPoliciesCount() { + if (accessPoliciesBuilder_ == null) { + return accessPolicies_.size(); + } else { + return accessPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3.AccessPolicy getAccessPolicies(int index) { + if (accessPoliciesBuilder_ == null) { + return accessPolicies_.get(index); + } else { + return accessPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public Builder setAccessPolicies(int index, com.google.iam.v3.AccessPolicy value) { + if (accessPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessPoliciesIsMutable(); + accessPolicies_.set(index, value); + onChanged(); + } else { + accessPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public Builder setAccessPolicies( + int index, com.google.iam.v3.AccessPolicy.Builder builderForValue) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + accessPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public Builder addAccessPolicies(com.google.iam.v3.AccessPolicy value) { + if (accessPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(value); + onChanged(); + } else { + accessPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public Builder addAccessPolicies(int index, com.google.iam.v3.AccessPolicy value) { + if (accessPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(index, value); + onChanged(); + } else { + accessPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public Builder addAccessPolicies(com.google.iam.v3.AccessPolicy.Builder builderForValue) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(builderForValue.build()); + onChanged(); + } else { + accessPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public Builder addAccessPolicies( + int index, com.google.iam.v3.AccessPolicy.Builder builderForValue) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + accessPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public Builder addAllAccessPolicies( + java.lang.Iterable values) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessPolicies_); + onChanged(); + } else { + accessPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public Builder clearAccessPolicies() { + if (accessPoliciesBuilder_ == null) { + accessPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public Builder removeAccessPolicies(int index) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.remove(index); + onChanged(); + } else { + accessPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3.AccessPolicy.Builder getAccessPoliciesBuilder(int index) { + return internalGetAccessPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3.AccessPolicyOrBuilder getAccessPoliciesOrBuilder(int index) { + if (accessPoliciesBuilder_ == null) { + return accessPolicies_.get(index); + } else { + return accessPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public java.util.List + getAccessPoliciesOrBuilderList() { + if (accessPoliciesBuilder_ != null) { + return accessPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessPolicies_); + } + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3.AccessPolicy.Builder addAccessPoliciesBuilder() { + return internalGetAccessPoliciesFieldBuilder() + .addBuilder(com.google.iam.v3.AccessPolicy.getDefaultInstance()); + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3.AccessPolicy.Builder addAccessPoliciesBuilder(int index) { + return internalGetAccessPoliciesFieldBuilder() + .addBuilder(index, com.google.iam.v3.AccessPolicy.getDefaultInstance()); + } + + /** + * + * + *
        +     * The access policies from the specified parent.
        +     * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + public java.util.List getAccessPoliciesBuilderList() { + return internalGetAccessPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3.AccessPolicy, + com.google.iam.v3.AccessPolicy.Builder, + com.google.iam.v3.AccessPolicyOrBuilder> + internalGetAccessPoliciesFieldBuilder() { + if (accessPoliciesBuilder_ == null) { + accessPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3.AccessPolicy, + com.google.iam.v3.AccessPolicy.Builder, + com.google.iam.v3.AccessPolicyOrBuilder>( + accessPolicies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessPolicies_ = null; + } + return accessPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.ListAccessPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.ListAccessPoliciesResponse) + private static final com.google.iam.v3.ListAccessPoliciesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.ListAccessPoliciesResponse(); + } + + public static com.google.iam.v3.ListAccessPoliciesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.ListAccessPoliciesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesResponseOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..c88a03be9778 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListAccessPoliciesResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface ListAccessPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.ListAccessPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + java.util.List getAccessPoliciesList(); + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + com.google.iam.v3.AccessPolicy getAccessPolicies(int index); + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + int getAccessPoliciesCount(); + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + java.util.List + getAccessPoliciesOrBuilderList(); + + /** + * + * + *
        +   * The access policies from the specified parent.
        +   * 
        + * + * repeated .google.iam.v3.AccessPolicy access_policies = 1; + */ + com.google.iam.v3.AccessPolicyOrBuilder getAccessPoliciesOrBuilder(int index); + + /** + * + * + *
        +   * Optional. A token, which can be sent as `page_token` to retrieve the next
        +   * page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
        +   * Optional. A token, which can be sent as `page_token` to retrieve the next
        +   * page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListPolicyBindingsRequest.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListPolicyBindingsRequest.java index c01dfe44c2c3..7085b2b9716b 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListPolicyBindingsRequest.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListPolicyBindingsRequest.java @@ -155,8 +155,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -239,7 +238,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
            * Optional. An expression for filtering the results of the request. Filter
        -   * rules are case insensitive. Some eligible fields for filtering are:
        +   * rules are case insensitive. Some eligible fields for filtering are the
        +   * following:
            *
            * + `target`
            * + `policy`
        @@ -273,7 +273,8 @@ public java.lang.String getFilter() {
            *
            * 
            * Optional. An expression for filtering the results of the request. Filter
        -   * rules are case insensitive. Some eligible fields for filtering are:
        +   * rules are case insensitive. Some eligible fields for filtering are the
        +   * following:
            *
            * + `target`
            * + `policy`
        @@ -851,8 +852,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
              * Optional. The maximum number of policy bindings to return. The service may
              * return fewer than this value.
              *
        -     * If unspecified, at most 50 policy bindings will be returned.
        -     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * The default value is 50. The maximum value is 1000.
              * 
        * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -871,8 +871,7 @@ public int getPageSize() { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. *
        * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -895,8 +894,7 @@ public Builder setPageSize(int value) { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1048,7 +1046,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * *
              * Optional. An expression for filtering the results of the request. Filter
        -     * rules are case insensitive. Some eligible fields for filtering are:
        +     * rules are case insensitive. Some eligible fields for filtering are the
        +     * following:
              *
              * + `target`
              * + `policy`
        @@ -1081,7 +1080,8 @@ public java.lang.String getFilter() {
              *
              * 
              * Optional. An expression for filtering the results of the request. Filter
        -     * rules are case insensitive. Some eligible fields for filtering are:
        +     * rules are case insensitive. Some eligible fields for filtering are the
        +     * following:
              *
              * + `target`
              * + `policy`
        @@ -1114,7 +1114,8 @@ public com.google.protobuf.ByteString getFilterBytes() {
              *
              * 
              * Optional. An expression for filtering the results of the request. Filter
        -     * rules are case insensitive. Some eligible fields for filtering are:
        +     * rules are case insensitive. Some eligible fields for filtering are the
        +     * following:
              *
              * + `target`
              * + `policy`
        @@ -1146,7 +1147,8 @@ public Builder setFilter(java.lang.String value) {
              *
              * 
              * Optional. An expression for filtering the results of the request. Filter
        -     * rules are case insensitive. Some eligible fields for filtering are:
        +     * rules are case insensitive. Some eligible fields for filtering are the
        +     * following:
              *
              * + `target`
              * + `policy`
        @@ -1174,7 +1176,8 @@ public Builder clearFilter() {
              *
              * 
              * Optional. An expression for filtering the results of the request. Filter
        -     * rules are case insensitive. Some eligible fields for filtering are:
        +     * rules are case insensitive. Some eligible fields for filtering are the
        +     * following:
              *
              * + `target`
              * + `policy`
        diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListPolicyBindingsRequestOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListPolicyBindingsRequestOrBuilder.java
        index dd0238833610..9c29015ce6ec 100644
        --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListPolicyBindingsRequestOrBuilder.java
        +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/ListPolicyBindingsRequestOrBuilder.java
        @@ -79,8 +79,7 @@ public interface ListPolicyBindingsRequestOrBuilder
            * Optional. The maximum number of policy bindings to return. The service may
            * return fewer than this value.
            *
        -   * If unspecified, at most 50 policy bindings will be returned.
        -   * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +   * The default value is 50. The maximum value is 1000.
            * 
        * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -128,7 +127,8 @@ public interface ListPolicyBindingsRequestOrBuilder * *
            * Optional. An expression for filtering the results of the request. Filter
        -   * rules are case insensitive. Some eligible fields for filtering are:
        +   * rules are case insensitive. Some eligible fields for filtering are the
        +   * following:
            *
            * + `target`
            * + `policy`
        @@ -151,7 +151,8 @@ public interface ListPolicyBindingsRequestOrBuilder
            *
            * 
            * Optional. An expression for filtering the results of the request. Filter
        -   * rules are case insensitive. Some eligible fields for filtering are:
        +   * rules are case insensitive. Some eligible fields for filtering are the
        +   * following:
            *
            * + `target`
            * + `policy`
        diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBinding.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBinding.java
        index 2180c36d6415..276c5ba2ff7c 100644
        --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBinding.java
        +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBinding.java
        @@ -91,7 +91,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
            *
            *
            * 
        -   * Different policy kinds supported in this binding.
        +   * The different policy kinds supported in this binding.
            * 
        * * Protobuf enum {@code google.iam.v3.PolicyBinding.PolicyKind} @@ -117,6 +117,16 @@ public enum PolicyKind implements com.google.protobuf.ProtocolMessageEnum { * PRINCIPAL_ACCESS_BOUNDARY = 1; */ PRINCIPAL_ACCESS_BOUNDARY(1), + /** + * + * + *
        +     * Access policy kind.
        +     * 
        + * + * ACCESS = 2; + */ + ACCESS(2), UNRECOGNIZED(-1), ; @@ -152,6 +162,17 @@ public enum PolicyKind implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRINCIPAL_ACCESS_BOUNDARY_VALUE = 1; + /** + * + * + *
        +     * Access policy kind.
        +     * 
        + * + * ACCESS = 2; + */ + public static final int ACCESS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -180,6 +201,8 @@ public static PolicyKind forNumber(int value) { return POLICY_KIND_UNSPECIFIED; case 1: return PRINCIPAL_ACCESS_BOUNDARY; + case 2: + return ACCESS; default: return null; } @@ -242,23 +265,24 @@ public interface TargetOrBuilder * * *
        -     * Immutable. Full Resource Name used for principal access boundary policy
        -     * bindings. The principal set must be directly parented by the policy
        -     * binding's parent or same as the parent if the target is a
        -     * project/folder/organization.
        +     * Immutable. The full resource name that's used for principal access
        +     * boundary policy bindings. The principal set must be directly parented
        +     * by the policy binding's parent or same as the parent if the target is a
        +     * project, folder, or organization.
              *
              * Examples:
        -     * * For binding's parented by an organization:
        +     *
        +     * * For bindings parented by an organization:
              * * Organization:
              * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              * * Workforce Identity:
              * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
              * * Workspace Identity:
              * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -     * * For binding's parented by a folder:
        +     * * For bindings parented by a folder:
              * * Folder:
              * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -     * * For binding's parented by a project:
        +     * * For bindings parented by a project:
              * * Project:
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -276,23 +300,24 @@ public interface TargetOrBuilder
              *
              *
              * 
        -     * Immutable. Full Resource Name used for principal access boundary policy
        -     * bindings. The principal set must be directly parented by the policy
        -     * binding's parent or same as the parent if the target is a
        -     * project/folder/organization.
        +     * Immutable. The full resource name that's used for principal access
        +     * boundary policy bindings. The principal set must be directly parented
        +     * by the policy binding's parent or same as the parent if the target is a
        +     * project, folder, or organization.
              *
              * Examples:
        -     * * For binding's parented by an organization:
        +     *
        +     * * For bindings parented by an organization:
              * * Organization:
              * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              * * Workforce Identity:
              * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
              * * Workspace Identity:
              * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -     * * For binding's parented by a folder:
        +     * * For bindings parented by a folder:
              * * Folder:
              * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -     * * For binding's parented by a project:
        +     * * For bindings parented by a project:
              * * Project:
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -310,23 +335,24 @@ public interface TargetOrBuilder
              *
              *
              * 
        -     * Immutable. Full Resource Name used for principal access boundary policy
        -     * bindings. The principal set must be directly parented by the policy
        -     * binding's parent or same as the parent if the target is a
        -     * project/folder/organization.
        +     * Immutable. The full resource name that's used for principal access
        +     * boundary policy bindings. The principal set must be directly parented
        +     * by the policy binding's parent or same as the parent if the target is a
        +     * project, folder, or organization.
              *
              * Examples:
        -     * * For binding's parented by an organization:
        +     *
        +     * * For bindings parented by an organization:
              * * Organization:
              * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              * * Workforce Identity:
              * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
              * * Workspace Identity:
              * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -     * * For binding's parented by a folder:
        +     * * For bindings parented by a folder:
              * * Folder:
              * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -     * * For binding's parented by a project:
        +     * * For bindings parented by a project:
              * * Project:
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -340,6 +366,75 @@ public interface TargetOrBuilder
              */
             com.google.protobuf.ByteString getPrincipalSetBytes();
         
        +    /**
        +     *
        +     *
        +     * 
        +     * Immutable. The full resource name that's used for access policy
        +     * bindings.
        +     *
        +     * Examples:
        +     *
        +     * * Organization:
        +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +     * * Project:
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +     * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the resource field is set. + */ + boolean hasResource(); + + /** + * + * + *
        +     * Immutable. The full resource name that's used for access policy
        +     * bindings.
        +     *
        +     * Examples:
        +     *
        +     * * Organization:
        +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +     * * Project:
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +     * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
        +     * Immutable. The full resource name that's used for access policy
        +     * bindings.
        +     *
        +     * Examples:
        +     *
        +     * * Organization:
        +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +     * * Project:
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +     * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + com.google.iam.v3.PolicyBinding.Target.TargetCase getTargetCase(); } @@ -347,7 +442,7 @@ public interface TargetOrBuilder * * *
        -   * Target is the full resource name of the resource to which the policy will
        +   * The full resource name of the resource to which the policy will
            * be bound. Immutable once set.
            * 
        * @@ -401,6 +496,7 @@ public enum TargetCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PRINCIPAL_SET(1), + RESOURCE(2), TARGET_NOT_SET(0); private final int value; @@ -422,6 +518,8 @@ public static TargetCase forNumber(int value) { switch (value) { case 1: return PRINCIPAL_SET; + case 2: + return RESOURCE; case 0: return TARGET_NOT_SET; default: @@ -444,23 +542,24 @@ public TargetCase getTargetCase() { * * *
        -     * Immutable. Full Resource Name used for principal access boundary policy
        -     * bindings. The principal set must be directly parented by the policy
        -     * binding's parent or same as the parent if the target is a
        -     * project/folder/organization.
        +     * Immutable. The full resource name that's used for principal access
        +     * boundary policy bindings. The principal set must be directly parented
        +     * by the policy binding's parent or same as the parent if the target is a
        +     * project, folder, or organization.
              *
              * Examples:
        -     * * For binding's parented by an organization:
        +     *
        +     * * For bindings parented by an organization:
              * * Organization:
              * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              * * Workforce Identity:
              * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
              * * Workspace Identity:
              * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -     * * For binding's parented by a folder:
        +     * * For bindings parented by a folder:
              * * Folder:
              * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -     * * For binding's parented by a project:
        +     * * For bindings parented by a project:
              * * Project:
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -480,23 +579,24 @@ public boolean hasPrincipalSet() {
              *
              *
              * 
        -     * Immutable. Full Resource Name used for principal access boundary policy
        -     * bindings. The principal set must be directly parented by the policy
        -     * binding's parent or same as the parent if the target is a
        -     * project/folder/organization.
        +     * Immutable. The full resource name that's used for principal access
        +     * boundary policy bindings. The principal set must be directly parented
        +     * by the policy binding's parent or same as the parent if the target is a
        +     * project, folder, or organization.
              *
              * Examples:
        -     * * For binding's parented by an organization:
        +     *
        +     * * For bindings parented by an organization:
              * * Organization:
              * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              * * Workforce Identity:
              * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
              * * Workspace Identity:
              * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -     * * For binding's parented by a folder:
        +     * * For bindings parented by a folder:
              * * Folder:
              * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -     * * For binding's parented by a project:
        +     * * For bindings parented by a project:
              * * Project:
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -529,23 +629,24 @@ public java.lang.String getPrincipalSet() {
              *
              *
              * 
        -     * Immutable. Full Resource Name used for principal access boundary policy
        -     * bindings. The principal set must be directly parented by the policy
        -     * binding's parent or same as the parent if the target is a
        -     * project/folder/organization.
        +     * Immutable. The full resource name that's used for principal access
        +     * boundary policy bindings. The principal set must be directly parented
        +     * by the policy binding's parent or same as the parent if the target is a
        +     * project, folder, or organization.
              *
              * Examples:
        -     * * For binding's parented by an organization:
        +     *
        +     * * For bindings parented by an organization:
              * * Organization:
              * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              * * Workforce Identity:
              * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
              * * Workspace Identity:
              * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -     * * For binding's parented by a folder:
        +     * * For bindings parented by a folder:
              * * Folder:
              * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -     * * For binding's parented by a project:
        +     * * For bindings parented by a project:
              * * Project:
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -574,6 +675,109 @@ public com.google.protobuf.ByteString getPrincipalSetBytes() {
               }
             }
         
        +    public static final int RESOURCE_FIELD_NUMBER = 2;
        +
        +    /**
        +     *
        +     *
        +     * 
        +     * Immutable. The full resource name that's used for access policy
        +     * bindings.
        +     *
        +     * Examples:
        +     *
        +     * * Organization:
        +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +     * * Project:
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +     * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return targetCase_ == 2; + } + + /** + * + * + *
        +     * Immutable. The full resource name that's used for access policy
        +     * bindings.
        +     *
        +     * Examples:
        +     *
        +     * * Organization:
        +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +     * * Project:
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +     * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = ""; + if (targetCase_ == 2) { + ref = target_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 2) { + target_ = s; + } + return s; + } + } + + /** + * + * + *
        +     * Immutable. The full resource name that's used for access policy
        +     * bindings.
        +     *
        +     * Examples:
        +     *
        +     * * Organization:
        +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +     * * Project:
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +     * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 2) { + ref = target_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 2) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -591,6 +795,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (targetCase_ == 1) { com.google.protobuf.GeneratedMessage.writeString(output, 1, target_); } + if (targetCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, target_); + } getUnknownFields().writeTo(output); } @@ -603,6 +810,9 @@ public int getSerializedSize() { if (targetCase_ == 1) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, target_); } + if (targetCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, target_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -623,6 +833,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getPrincipalSet().equals(other.getPrincipalSet())) return false; break; + case 2: + if (!getResource().equals(other.getResource())) return false; + break; case 0: default: } @@ -642,6 +855,10 @@ public int hashCode() { hash = (37 * hash) + PRINCIPAL_SET_FIELD_NUMBER; hash = (53 * hash) + getPrincipalSet().hashCode(); break; + case 2: + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + break; case 0: default: } @@ -750,7 +967,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
        -     * Target is the full resource name of the resource to which the policy will
        +     * The full resource name of the resource to which the policy will
              * be bound. Immutable once set.
              * 
        * @@ -852,6 +1069,13 @@ public Builder mergeFrom(com.google.iam.v3.PolicyBinding.Target other) { onChanged(); break; } + case RESOURCE: + { + targetCase_ = 2; + target_ = other.target_; + onChanged(); + break; + } case TARGET_NOT_SET: { break; @@ -890,6 +1114,13 @@ public Builder mergeFrom( target_ = s; break; } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 2; + target_ = s; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -927,23 +1158,24 @@ public Builder clearTarget() { * * *
        -       * Immutable. Full Resource Name used for principal access boundary policy
        -       * bindings. The principal set must be directly parented by the policy
        -       * binding's parent or same as the parent if the target is a
        -       * project/folder/organization.
        +       * Immutable. The full resource name that's used for principal access
        +       * boundary policy bindings. The principal set must be directly parented
        +       * by the policy binding's parent or same as the parent if the target is a
        +       * project, folder, or organization.
                *
                * Examples:
        -       * * For binding's parented by an organization:
        +       *
        +       * * For bindings parented by an organization:
                * * Organization:
                * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                * * Workforce Identity:
                * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                * * Workspace Identity:
                * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -       * * For binding's parented by a folder:
        +       * * For bindings parented by a folder:
                * * Folder:
                * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -       * * For binding's parented by a project:
        +       * * For bindings parented by a project:
                * * Project:
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -964,23 +1196,24 @@ public boolean hasPrincipalSet() {
                *
                *
                * 
        -       * Immutable. Full Resource Name used for principal access boundary policy
        -       * bindings. The principal set must be directly parented by the policy
        -       * binding's parent or same as the parent if the target is a
        -       * project/folder/organization.
        +       * Immutable. The full resource name that's used for principal access
        +       * boundary policy bindings. The principal set must be directly parented
        +       * by the policy binding's parent or same as the parent if the target is a
        +       * project, folder, or organization.
                *
                * Examples:
        -       * * For binding's parented by an organization:
        +       *
        +       * * For bindings parented by an organization:
                * * Organization:
                * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                * * Workforce Identity:
                * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                * * Workspace Identity:
                * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -       * * For binding's parented by a folder:
        +       * * For bindings parented by a folder:
                * * Folder:
                * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -       * * For binding's parented by a project:
        +       * * For bindings parented by a project:
                * * Project:
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -1014,23 +1247,24 @@ public java.lang.String getPrincipalSet() {
                *
                *
                * 
        -       * Immutable. Full Resource Name used for principal access boundary policy
        -       * bindings. The principal set must be directly parented by the policy
        -       * binding's parent or same as the parent if the target is a
        -       * project/folder/organization.
        +       * Immutable. The full resource name that's used for principal access
        +       * boundary policy bindings. The principal set must be directly parented
        +       * by the policy binding's parent or same as the parent if the target is a
        +       * project, folder, or organization.
                *
                * Examples:
        -       * * For binding's parented by an organization:
        +       *
        +       * * For bindings parented by an organization:
                * * Organization:
                * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                * * Workforce Identity:
                * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                * * Workspace Identity:
                * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -       * * For binding's parented by a folder:
        +       * * For bindings parented by a folder:
                * * Folder:
                * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -       * * For binding's parented by a project:
        +       * * For bindings parented by a project:
                * * Project:
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -1064,23 +1298,24 @@ public com.google.protobuf.ByteString getPrincipalSetBytes() {
                *
                *
                * 
        -       * Immutable. Full Resource Name used for principal access boundary policy
        -       * bindings. The principal set must be directly parented by the policy
        -       * binding's parent or same as the parent if the target is a
        -       * project/folder/organization.
        +       * Immutable. The full resource name that's used for principal access
        +       * boundary policy bindings. The principal set must be directly parented
        +       * by the policy binding's parent or same as the parent if the target is a
        +       * project, folder, or organization.
                *
                * Examples:
        -       * * For binding's parented by an organization:
        +       *
        +       * * For bindings parented by an organization:
                * * Organization:
                * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                * * Workforce Identity:
                * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                * * Workspace Identity:
                * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -       * * For binding's parented by a folder:
        +       * * For bindings parented by a folder:
                * * Folder:
                * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -       * * For binding's parented by a project:
        +       * * For bindings parented by a project:
                * * Project:
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -1107,23 +1342,24 @@ public Builder setPrincipalSet(java.lang.String value) {
                *
                *
                * 
        -       * Immutable. Full Resource Name used for principal access boundary policy
        -       * bindings. The principal set must be directly parented by the policy
        -       * binding's parent or same as the parent if the target is a
        -       * project/folder/organization.
        +       * Immutable. The full resource name that's used for principal access
        +       * boundary policy bindings. The principal set must be directly parented
        +       * by the policy binding's parent or same as the parent if the target is a
        +       * project, folder, or organization.
                *
                * Examples:
        -       * * For binding's parented by an organization:
        +       *
        +       * * For bindings parented by an organization:
                * * Organization:
                * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                * * Workforce Identity:
                * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                * * Workspace Identity:
                * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -       * * For binding's parented by a folder:
        +       * * For bindings parented by a folder:
                * * Folder:
                * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -       * * For binding's parented by a project:
        +       * * For bindings parented by a project:
                * * Project:
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -1148,23 +1384,24 @@ public Builder clearPrincipalSet() {
                *
                *
                * 
        -       * Immutable. Full Resource Name used for principal access boundary policy
        -       * bindings. The principal set must be directly parented by the policy
        -       * binding's parent or same as the parent if the target is a
        -       * project/folder/organization.
        +       * Immutable. The full resource name that's used for principal access
        +       * boundary policy bindings. The principal set must be directly parented
        +       * by the policy binding's parent or same as the parent if the target is a
        +       * project, folder, or organization.
                *
                * Examples:
        -       * * For binding's parented by an organization:
        +       *
        +       * * For bindings parented by an organization:
                * * Organization:
                * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                * * Workforce Identity:
                * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                * * Workspace Identity:
                * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
        -       * * For binding's parented by a folder:
        +       * * For bindings parented by a folder:
                * * Folder:
                * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        -       * * For binding's parented by a project:
        +       * * For bindings parented by a project:
                * * Project:
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        @@ -1188,6 +1425,205 @@ public Builder setPrincipalSetBytes(com.google.protobuf.ByteString value) {
                 return this;
               }
         
        +      /**
        +       *
        +       *
        +       * 
        +       * Immutable. The full resource name that's used for access policy
        +       * bindings.
        +       *
        +       * Examples:
        +       *
        +       * * Organization:
        +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +       * * Project:
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +       * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the resource field is set. + */ + @java.lang.Override + public boolean hasResource() { + return targetCase_ == 2; + } + + /** + * + * + *
        +       * Immutable. The full resource name that's used for access policy
        +       * bindings.
        +       *
        +       * Examples:
        +       *
        +       * * Organization:
        +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +       * * Project:
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +       * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = ""; + if (targetCase_ == 2) { + ref = target_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 2) { + target_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +       * Immutable. The full resource name that's used for access policy
        +       * bindings.
        +       *
        +       * Examples:
        +       *
        +       * * Organization:
        +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +       * * Project:
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +       * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 2) { + ref = target_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 2) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +       * Immutable. The full resource name that's used for access policy
        +       * bindings.
        +       *
        +       * Examples:
        +       *
        +       * * Organization:
        +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +       * * Project:
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +       * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetCase_ = 2; + target_ = value; + onChanged(); + return this; + } + + /** + * + * + *
        +       * Immutable. The full resource name that's used for access policy
        +       * bindings.
        +       *
        +       * Examples:
        +       *
        +       * * Organization:
        +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +       * * Project:
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +       * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
        +       * Immutable. The full resource name that's used for access policy
        +       * bindings.
        +       *
        +       * Examples:
        +       *
        +       * * Organization:
        +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
        +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
        +       * * Project:
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
        +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
        +       * 
        + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetCase_ = 2; + target_ = value; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.iam.v3.PolicyBinding.Target) } @@ -1610,8 +2046,8 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { * * *
        -   * Required. Immutable. Target is the full resource name of the resource to
        -   * which the policy will be bound. Immutable once set.
        +   * Required. Immutable. The full resource name of the resource to which the
        +   * policy will be bound. Immutable once set.
            * 
        * * @@ -1629,8 +2065,8 @@ public boolean hasTarget() { * * *
        -   * Required. Immutable. Target is the full resource name of the resource to
        -   * which the policy will be bound. Immutable once set.
        +   * Required. Immutable. The full resource name of the resource to which the
        +   * policy will be bound. Immutable once set.
            * 
        * * @@ -1648,8 +2084,8 @@ public com.google.iam.v3.PolicyBinding.Target getTarget() { * * *
        -   * Required. Immutable. Target is the full resource name of the resource to
        -   * which the policy will be bound. Immutable once set.
        +   * Required. Immutable. The full resource name of the resource to which the
        +   * policy will be bound. Immutable once set.
            * 
        * * @@ -1858,13 +2294,14 @@ public com.google.protobuf.ByteString getPolicyUidBytes() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1909,13 +2346,14 @@ public boolean hasCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1960,13 +2398,14 @@ public com.google.type.Expr getCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3458,8 +3897,8 @@ public Builder putAllAnnotations(java.util.Map - * Required. Immutable. Target is the full resource name of the resource to - * which the policy will be bound. Immutable once set. + * Required. Immutable. The full resource name of the resource to which the + * policy will be bound. Immutable once set. *
        * * @@ -3476,8 +3915,8 @@ public boolean hasTarget() { * * *
        -     * Required. Immutable. Target is the full resource name of the resource to
        -     * which the policy will be bound. Immutable once set.
        +     * Required. Immutable. The full resource name of the resource to which the
        +     * policy will be bound. Immutable once set.
              * 
        * * @@ -3500,8 +3939,8 @@ public com.google.iam.v3.PolicyBinding.Target getTarget() { * * *
        -     * Required. Immutable. Target is the full resource name of the resource to
        -     * which the policy will be bound. Immutable once set.
        +     * Required. Immutable. The full resource name of the resource to which the
        +     * policy will be bound. Immutable once set.
              * 
        * * @@ -3526,8 +3965,8 @@ public Builder setTarget(com.google.iam.v3.PolicyBinding.Target value) { * * *
        -     * Required. Immutable. Target is the full resource name of the resource to
        -     * which the policy will be bound. Immutable once set.
        +     * Required. Immutable. The full resource name of the resource to which the
        +     * policy will be bound. Immutable once set.
              * 
        * * @@ -3549,8 +3988,8 @@ public Builder setTarget(com.google.iam.v3.PolicyBinding.Target.Builder builderF * * *
        -     * Required. Immutable. Target is the full resource name of the resource to
        -     * which the policy will be bound. Immutable once set.
        +     * Required. Immutable. The full resource name of the resource to which the
        +     * policy will be bound. Immutable once set.
              * 
        * * @@ -3580,8 +4019,8 @@ public Builder mergeTarget(com.google.iam.v3.PolicyBinding.Target value) { * * *
        -     * Required. Immutable. Target is the full resource name of the resource to
        -     * which the policy will be bound. Immutable once set.
        +     * Required. Immutable. The full resource name of the resource to which the
        +     * policy will be bound. Immutable once set.
              * 
        * * @@ -3603,8 +4042,8 @@ public Builder clearTarget() { * * *
        -     * Required. Immutable. Target is the full resource name of the resource to
        -     * which the policy will be bound. Immutable once set.
        +     * Required. Immutable. The full resource name of the resource to which the
        +     * policy will be bound. Immutable once set.
              * 
        * * @@ -3621,8 +4060,8 @@ public com.google.iam.v3.PolicyBinding.Target.Builder getTargetBuilder() { * * *
        -     * Required. Immutable. Target is the full resource name of the resource to
        -     * which the policy will be bound. Immutable once set.
        +     * Required. Immutable. The full resource name of the resource to which the
        +     * policy will be bound. Immutable once set.
              * 
        * * @@ -3643,8 +4082,8 @@ public com.google.iam.v3.PolicyBinding.TargetOrBuilder getTargetOrBuilder() { * * *
        -     * Required. Immutable. Target is the full resource name of the resource to
        -     * which the policy will be bound. Immutable once set.
        +     * Required. Immutable. The full resource name of the resource to which the
        +     * policy will be bound. Immutable once set.
              * 
        * * @@ -4068,13 +4507,14 @@ public Builder setPolicyUidBytes(com.google.protobuf.ByteString value) { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4118,13 +4558,14 @@ public boolean hasCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4172,13 +4613,14 @@ public com.google.type.Expr getCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4230,13 +4672,14 @@ public Builder setCondition(com.google.type.Expr value) { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4285,13 +4728,14 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4348,13 +4792,14 @@ public Builder mergeCondition(com.google.type.Expr value) { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4403,13 +4848,14 @@ public Builder clearCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4453,13 +4899,14 @@ public com.google.type.Expr.Builder getConditionBuilder() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4505,13 +4952,14 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingOrBuilder.java index 61374ed9d3b9..a4136128d345 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingOrBuilder.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingOrBuilder.java @@ -242,8 +242,8 @@ java.lang.String getAnnotationsOrDefault( * * *
        -   * Required. Immutable. Target is the full resource name of the resource to
        -   * which the policy will be bound. Immutable once set.
        +   * Required. Immutable. The full resource name of the resource to which the
        +   * policy will be bound. Immutable once set.
            * 
        * * @@ -258,8 +258,8 @@ java.lang.String getAnnotationsOrDefault( * * *
        -   * Required. Immutable. Target is the full resource name of the resource to
        -   * which the policy will be bound. Immutable once set.
        +   * Required. Immutable. The full resource name of the resource to which the
        +   * policy will be bound. Immutable once set.
            * 
        * * @@ -274,8 +274,8 @@ java.lang.String getAnnotationsOrDefault( * * *
        -   * Required. Immutable. Target is the full resource name of the resource to
        -   * which the policy will be bound. Immutable once set.
        +   * Required. Immutable. The full resource name of the resource to which the
        +   * policy will be bound. Immutable once set.
            * 
        * * @@ -413,13 +413,14 @@ java.lang.String getAnnotationsOrDefault( * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -461,13 +462,14 @@ java.lang.String getAnnotationsOrDefault( * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -509,13 +511,14 @@ java.lang.String getAnnotationsOrDefault( * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and agent identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
        * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingResourcesProto.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingResourcesProto.java index db6be87bfe43..67a93b0c6713 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingResourcesProto.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingResourcesProto.java @@ -65,7 +65,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",google/iam/v3/policy_binding_resources.proto\022\r" + "google.iam.v3\032\037google/api/field_behavior.proto\032\033google/api/field_info.pr" + "oto\032\031google/api/resource.proto\032\037google/p" - + "rotobuf/timestamp.proto\032\026google/type/expr.proto\"\326\007\n\r" + + "rotobuf/timestamp.proto\032\026google/type/expr.proto\"\373\007\n\r" + "PolicyBinding\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\003uid\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\021\n" @@ -82,24 +82,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tcondition\030\010 \001(\0132\021.google.type.ExprB\003\340A\001\0224\n" + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\n" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0320\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032I\n" + "\006Target\022\034\n\r" - + "principal_set\030\001 \001(\tB\003\340A\005H\000B\010\n" + + "principal_set\030\001 \001(\tB\003\340A\005H\000\022\027\n" + + "\010resource\030\002 \001(\tB\003\340A\005H\000B\010\n" + "\006target\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"H\n\n" + + "\005value\030\002 \001(\t:\0028\001\"T\n\n" + "PolicyKind\022\033\n" + "\027POLICY_KIND_UNSPECIFIED\020\000\022\035\n" - + "\031PRINCIPAL_ACCESS_BOUNDARY\020\001:\250\002\352A\244\002\n" - + " iam.googleapis.com/PolicyBinding\022Qorganizations/{organizat" - + "ion}/locations/{location}/policyBindings/{policy_binding}\022Efolders/{folder}/loca" - + "tions/{location}/policyBindings/{policy_binding}\022Gprojects/{project}/locations/{" - + "location}/policyBindings/{policy_binding}*\016policyBindings2\r" + + "\031PRINCIPAL_ACCESS_BOUNDARY\020\001\022\n" + + "\n" + + "\006ACCESS\020\002:\250\002\352A\244\002\n" + + " iam.googleapis.com/PolicyBinding\022Qorganizations/{organization" + + "}/locations/{location}/policyBindings/{policy_binding}\022Efolders/{folder}/locatio" + + "ns/{location}/policyBindings/{policy_binding}\022Gprojects/{project}/locations/{loc" + + "ation}/policyBindings/{policy_binding}*\016policyBindings2\r" + "policyBindingB\211\001\n" - + "\021com.google.iam.v3B\033PolicyBindingResourcesPr" - + "otoP\001Z)cloud.google.com/go/iam/apiv3/iam" - + "pb;iampb\252\002\023Google.Cloud.Iam.V3\312\002\023Google\\Cloud\\Iam\\V3b\006proto3" + + "\021com.google.iam.v3B\033PolicyBindingResourcesProto" + + "P\001Z)cloud.google.com/go/iam/apiv3/iampb;" + + "iampb\252\002\023Google.Cloud.Iam.V3\312\002\023Google\\Cloud\\Iam\\V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -135,7 +138,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_iam_v3_PolicyBinding_Target_descriptor, new java.lang.String[] { - "PrincipalSet", "Target", + "PrincipalSet", "Resource", "Target", }); internal_static_google_iam_v3_PolicyBinding_AnnotationsEntry_descriptor = internal_static_google_iam_v3_PolicyBinding_descriptor.getNestedType(1); diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingsServiceProto.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingsServiceProto.java index 442117fd8d4c..c6e446b34045 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingsServiceProto.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/PolicyBindingsServiceProto.java @@ -119,63 +119,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\"q\n" + "\032ListPolicyBindingsResponse\0225\n" + "\017policy_bindings\030\001 \003(\0132\034.google.iam.v3.PolicyBinding\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\243\001\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\270\001\n" + "!SearchTargetPolicyBindingsRequest\022\023\n" + "\006target\030\001 \001(\tB\003\340A\002\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\0228\n" - + "\006parent\030\005 \001(\tB(\340A\002\372A\"\022 iam.googleapis.com/PolicyBinding\"y\n" + + "\006parent\030\005 \001(\tB(\340A\002\372A\"\022" + + " iam.googleapis.com/PolicyBinding\022\023\n" + + "\006filter\030\006 \001(\tB\003\340A\001\"y\n" + "\"SearchTargetPolicyBindingsResponse\0225\n" + "\017policy_bindings\030\001 \003(\0132\034.google.iam.v3.PolicyBinding\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\0012\240\021\n" + "\016PolicyBindings\022\214\003\n" - + "\023CreatePolicyBinding\022).google.iam.v3.CreatePolicyBindingR" - + "equest\032\035.google.longrunning.Operation\"\252\002\312A\"\n\r" - + "PolicyBinding\022\021OperationMetadata\332A\'" - + "parent,policy_binding,policy_binding_id\202" - + "\323\344\223\002\324\001\"2/v3/{parent=projects/*/locations" - + "/*}/policyBindings:\016policy_bindingZC\"1/v3/{parent=folders/*/locations/*}/policyB" - + "indings:\016policy_bindingZI\"7/v3/{parent=o" - + "rganizations/*/locations/*}/policyBindings:\016policy_binding\022\215\002\n" - + "\020GetPolicyBinding\022&.google.iam.v3.GetPolicyBindingRequest\032" - + "\034.google.iam.v3.PolicyBinding\"\262\001\332A\004name\202" - + "\323\344\223\002\244\001\0222/v3/{name=projects/*/locations/*" - + "/policyBindings/*}Z3\0221/v3/{name=folders/*/locations/*/policyBindings/*}Z9\0227/v3/{" - + "name=organizations/*/locations/*/policyBindings/*}\022\254\003\n" - + "\023UpdatePolicyBinding\022).goo" - + "gle.iam.v3.UpdatePolicyBindingRequest\032\035.google.longrunning.Operation\"\312\002\312A\"\n\r" - + "PolicyBinding\022\021OperationMetadata\332A\032policy_bi" - + "nding,update_mask\202\323\344\223\002\201\0022A/v3/{policy_bi" - + "nding.name=projects/*/locations/*/policyBindings/*}:\016policy_bindingZR2@/v3/{poli" - + "cy_binding.name=folders/*/locations/*/policyBindings/*}:\016policy_bindingZX2F/v3/{" - + "policy_binding.name=organizations/*/loca" - + "tions/*/policyBindings/*}:\016policy_binding\022\301\002\n" - + "\023DeletePolicyBinding\022).google.iam.v" - + "3.DeletePolicyBindingRequest\032\035.google.longrunning.Operation\"\337\001\312A*\n" - + "\025google.protob" - + "uf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002\244" - + "\001*2/v3/{name=projects/*/locations/*/policyBindings/*}Z3*1/v3/{name=folders/*/loc" - + "ations/*/policyBindings/*}Z9*7/v3/{name=" - + "organizations/*/locations/*/policyBindings/*}\022\240\002\n" - + "\022ListPolicyBindings\022(.google.iam.v3.ListPolicyBindingsRequest\032).google." - + "iam.v3.ListPolicyBindingsResponse\"\264\001\332A\006p" - + "arent\202\323\344\223\002\244\001\0222/v3/{parent=projects/*/loc" - + "ations/*}/policyBindingsZ3\0221/v3/{parent=folders/*/locations/*}/policyBindingsZ9\022" - + "7/v3/{parent=organizations/*/locations/*}/policyBindings\022\220\003\n" - + "\032SearchTargetPolicyBindings\0220.google.iam.v3.SearchTargetPoli" - + "cyBindingsRequest\0321.google.iam.v3.SearchTargetPolicyBindingsResponse\"\214\002\332A\r" - + "parent,target\202\323\344\223\002\365\001\022M/v3/{parent=projects/*/l" - + "ocations/*}/policyBindings:searchTargetPolicyBindingsZN\022L/v3/{parent=folders/*/l" - + "ocations/*}/policyBindings:searchTargetPolicyBindingsZT\022R/v3/{parent=organizatio" - + "ns/*/locations/*}/policyBindings:searchT" - + "argetPolicyBindings\032F\312A\022iam.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/cloud-platformB\264\002\n" - + "\021com.google.iam.v3B\032PolicyBindingsServiceProtoP\001Z)cloud.google.co" - + "m/go/iam/apiv3/iampb;iampb\252\002\023Google.Cloud.Iam.V3\312\002\023Google\\Cloud\\Iam\\V3\352A\\\n" - + "\'iam.googleapis.com/OrganizationLocation\0221orga" - + "nizations/{organization}/locations/{location}\352AJ\n" - + "!iam.googleapis.com/FolderLocation\022%folders/{folder}/locations/{locatio" - + "n}b\006proto3" + + "\023CreatePolicyBinding\022).google.iam.v3" + + ".CreatePolicyBindingRequest\032\035.google.longrunning.Operation\"\252\002\312A\"\n\r" + + "PolicyBinding\022\021OperationMetadata\332A\'parent,policy_bindi" + + "ng,policy_binding_id\202\323\344\223\002\324\001\"2/v3/{parent" + + "=projects/*/locations/*}/policyBindings:\016policy_bindingZC\"1/v3/{parent=folders/*" + + "/locations/*}/policyBindings:\016policy_bindingZI\"7/v3/{parent=organizations/*/loca" + + "tions/*}/policyBindings:\016policy_binding\022\215\002\n" + + "\020GetPolicyBinding\022&.google.iam.v3.Get" + + "PolicyBindingRequest\032\034.google.iam.v3.Pol" + + "icyBinding\"\262\001\332A\004name\202\323\344\223\002\244\001\0222/v3/{name=p" + + "rojects/*/locations/*/policyBindings/*}Z3\0221/v3/{name=folders/*/locations/*/polic" + + "yBindings/*}Z9\0227/v3/{name=organizations/*/locations/*/policyBindings/*}\022\254\003\n" + + "\023UpdatePolicyBinding\022).google.iam.v3.UpdatePo" + + "licyBindingRequest\032\035.google.longrunning.Operation\"\312\002\312A\"\n\r" + + "PolicyBinding\022\021OperationMetadata\332A\032policy_binding,update_mask\202\323" + + "\344\223\002\201\0022A/v3/{policy_binding.name=projects" + + "/*/locations/*/policyBindings/*}:\016policy_bindingZR2@/v3/{policy_binding.name=fol" + + "ders/*/locations/*/policyBindings/*}:\016policy_bindingZX2F/v3/{policy_binding.name" + + "=organizations/*/locations/*/policyBindings/*}:\016policy_binding\022\301\002\n" + + "\023DeletePolicyBinding\022).google.iam.v3.DeletePolicyBindi" + + "ngRequest\032\035.google.longrunning.Operation\"\337\001\312A*\n" + + "\025google.protobuf.Empty\022\021Operation" + + "Metadata\332A\004name\202\323\344\223\002\244\001*2/v3/{name=projec" + + "ts/*/locations/*/policyBindings/*}Z3*1/v3/{name=folders/*/locations/*/policyBind" + + "ings/*}Z9*7/v3/{name=organizations/*/locations/*/policyBindings/*}\022\240\002\n" + + "\022ListPolicyBindings\022(.google.iam.v3.ListPolicyBind" + + "ingsRequest\032).google.iam.v3.ListPolicyBi" + + "ndingsResponse\"\264\001\332A\006parent\202\323\344\223\002\244\001\0222/v3/{" + + "parent=projects/*/locations/*}/policyBindingsZ3\0221/v3/{parent=folders/*/locations" + + "/*}/policyBindingsZ9\0227/v3/{parent=organi" + + "zations/*/locations/*}/policyBindings\022\220\003\n" + + "\032SearchTargetPolicyBindings\0220.google.ia" + + "m.v3.SearchTargetPolicyBindingsRequest\0321" + + ".google.iam.v3.SearchTargetPolicyBindingsResponse\"\214\002\332A\r" + + "parent,target\202\323\344\223\002\365\001\022M/v3" + + "/{parent=projects/*/locations/*}/policyBindings:searchTargetPolicyBindingsZN\022L/v" + + "3/{parent=folders/*/locations/*}/policyBindings:searchTargetPolicyBindingsZT\022R/v" + + "3/{parent=organizations/*/locations/*}/policyBindings:searchTargetPolicyBindings" + + "\032F\312A\022iam.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\264\002\n" + + "\021com.google.iam.v3B\032PolicyBindingsServicePro" + + "toP\001Z)cloud.google.com/go/iam/apiv3/iamp" + + "b;iampb\252\002\023Google.Cloud.Iam.V3\312\002\023Google\\Cloud\\Iam\\V3\352A\\\n" + + "\'iam.googleapis.com/Organ" + + "izationLocation\0221organizations/{organization}/locations/{location}\352AJ\n" + + "!iam.googleapis.com/FolderLocation\022%folders/{folde" + + "r}/locations/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -245,7 +246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_iam_v3_SearchTargetPolicyBindingsRequest_descriptor, new java.lang.String[] { - "Target", "PageSize", "PageToken", "Parent", + "Target", "PageSize", "PageToken", "Parent", "Filter", }); internal_static_google_iam_v3_SearchTargetPolicyBindingsResponse_descriptor = getDescriptor().getMessageType(7); diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsRequest.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsRequest.java new file mode 100644 index 000000000000..5ebbd27f1045 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsRequest.java @@ -0,0 +1,990 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Request message for SearchAccessPolicyBindings rpc.
        + * 
        + * + * Protobuf type {@code google.iam.v3.SearchAccessPolicyBindingsRequest} + */ +@com.google.protobuf.Generated +public final class SearchAccessPolicyBindingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.SearchAccessPolicyBindingsRequest) + SearchAccessPolicyBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchAccessPolicyBindingsRequest"); + } + + // Use SearchAccessPolicyBindingsRequest.newBuilder() to construct. + private SearchAccessPolicyBindingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAccessPolicyBindingsRequest() { + name_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.SearchAccessPolicyBindingsRequest.class, + com.google.iam.v3.SearchAccessPolicyBindingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. The name of the access policy.
        +   * Format:
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The name of the access policy.
        +   * Format:
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * 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; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
        +   * Optional. The maximum number of policy bindings to return. The service may
        +   * return fewer than this value.
        +   *
        +   * If unspecified, at most 50 policy bindings will be returned.
        +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +   * Optional. A page token, received from a previous
        +   * `SearchAccessPolicyBindingsRequest` call. Provide this to
        +   * retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to
        +   * `SearchAccessPolicyBindingsRequest` must match the call
        +   * that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. A page token, received from a previous
        +   * `SearchAccessPolicyBindingsRequest` call. Provide this to
        +   * retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to
        +   * `SearchAccessPolicyBindingsRequest` must match the call
        +   * that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.SearchAccessPolicyBindingsRequest)) { + return super.equals(obj); + } + com.google.iam.v3.SearchAccessPolicyBindingsRequest other = + (com.google.iam.v3.SearchAccessPolicyBindingsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.SearchAccessPolicyBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for SearchAccessPolicyBindings rpc.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.SearchAccessPolicyBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.SearchAccessPolicyBindingsRequest) + com.google.iam.v3.SearchAccessPolicyBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.SearchAccessPolicyBindingsRequest.class, + com.google.iam.v3.SearchAccessPolicyBindingsRequest.Builder.class); + } + + // Construct using com.google.iam.v3.SearchAccessPolicyBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.SearchAccessPolicyBindingsRequest getDefaultInstanceForType() { + return com.google.iam.v3.SearchAccessPolicyBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.SearchAccessPolicyBindingsRequest build() { + com.google.iam.v3.SearchAccessPolicyBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.SearchAccessPolicyBindingsRequest buildPartial() { + com.google.iam.v3.SearchAccessPolicyBindingsRequest result = + new com.google.iam.v3.SearchAccessPolicyBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3.SearchAccessPolicyBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.SearchAccessPolicyBindingsRequest) { + return mergeFrom((com.google.iam.v3.SearchAccessPolicyBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.SearchAccessPolicyBindingsRequest other) { + if (other == com.google.iam.v3.SearchAccessPolicyBindingsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
        +     * Required. The name of the access policy.
        +     * Format:
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the access policy.
        +     * Format:
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The name of the access policy.
        +     * Format:
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the access policy.
        +     * Format:
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The name of the access policy.
        +     * Format:
        +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +     * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
        +     * Optional. The maximum number of policy bindings to return. The service may
        +     * return fewer than this value.
        +     *
        +     * If unspecified, at most 50 policy bindings will be returned.
        +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
        +     * Optional. The maximum number of policy bindings to return. The service may
        +     * return fewer than this value.
        +     *
        +     * If unspecified, at most 50 policy bindings will be returned.
        +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The maximum number of policy bindings to return. The service may
        +     * return fewer than this value.
        +     *
        +     * If unspecified, at most 50 policy bindings will be returned.
        +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
        +     * retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `SearchAccessPolicyBindingsRequest` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
        +     * retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `SearchAccessPolicyBindingsRequest` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
        +     * retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `SearchAccessPolicyBindingsRequest` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
        +     * retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `SearchAccessPolicyBindingsRequest` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A page token, received from a previous
        +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
        +     * retrieve the subsequent page.
        +     *
        +     * When paginating, all other parameters provided to
        +     * `SearchAccessPolicyBindingsRequest` must match the call
        +     * that provided the page token.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.SearchAccessPolicyBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.SearchAccessPolicyBindingsRequest) + private static final com.google.iam.v3.SearchAccessPolicyBindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.SearchAccessPolicyBindingsRequest(); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAccessPolicyBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.SearchAccessPolicyBindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsRequestOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..2ddc76f7ca00 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsRequestOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface SearchAccessPolicyBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.SearchAccessPolicyBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The name of the access policy.
        +   * Format:
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. The name of the access policy.
        +   * Format:
        +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Optional. The maximum number of policy bindings to return. The service may
        +   * return fewer than this value.
        +   *
        +   * If unspecified, at most 50 policy bindings will be returned.
        +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous
        +   * `SearchAccessPolicyBindingsRequest` call. Provide this to
        +   * retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to
        +   * `SearchAccessPolicyBindingsRequest` must match the call
        +   * that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
        +   * Optional. A page token, received from a previous
        +   * `SearchAccessPolicyBindingsRequest` call. Provide this to
        +   * retrieve the subsequent page.
        +   *
        +   * When paginating, all other parameters provided to
        +   * `SearchAccessPolicyBindingsRequest` must match the call
        +   * that provided the page token.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsResponse.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsResponse.java new file mode 100644 index 000000000000..91d520f03f71 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsResponse.java @@ -0,0 +1,1120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Response message for SearchAccessPolicyBindings rpc.
        + * 
        + * + * Protobuf type {@code google.iam.v3.SearchAccessPolicyBindingsResponse} + */ +@com.google.protobuf.Generated +public final class SearchAccessPolicyBindingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.SearchAccessPolicyBindingsResponse) + SearchAccessPolicyBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchAccessPolicyBindingsResponse"); + } + + // Use SearchAccessPolicyBindingsResponse.newBuilder() to construct. + private SearchAccessPolicyBindingsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAccessPolicyBindingsResponse() { + policyBindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.SearchAccessPolicyBindingsResponse.class, + com.google.iam.v3.SearchAccessPolicyBindingsResponse.Builder.class); + } + + public static final int POLICY_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List policyBindings_; + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public java.util.List getPolicyBindingsList() { + return policyBindings_; + } + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public java.util.List + getPolicyBindingsOrBuilderList() { + return policyBindings_; + } + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public int getPolicyBindingsCount() { + return policyBindings_.size(); + } + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public com.google.iam.v3.PolicyBinding getPolicyBindings(int index) { + return policyBindings_.get(index); + } + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public com.google.iam.v3.PolicyBindingOrBuilder getPolicyBindingsOrBuilder(int index) { + return policyBindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +   * Optional. A token, which can be sent as `page_token` to retrieve the next
        +   * page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +   * Optional. A token, which can be sent as `page_token` to retrieve the next
        +   * page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 < policyBindings_.size(); i++) { + output.writeMessage(1, policyBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < policyBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policyBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.SearchAccessPolicyBindingsResponse)) { + return super.equals(obj); + } + com.google.iam.v3.SearchAccessPolicyBindingsResponse other = + (com.google.iam.v3.SearchAccessPolicyBindingsResponse) obj; + + if (!getPolicyBindingsList().equals(other.getPolicyBindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPolicyBindingsCount() > 0) { + hash = (37 * hash) + POLICY_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyBindingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.SearchAccessPolicyBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response message for SearchAccessPolicyBindings rpc.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.SearchAccessPolicyBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.SearchAccessPolicyBindingsResponse) + com.google.iam.v3.SearchAccessPolicyBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.SearchAccessPolicyBindingsResponse.class, + com.google.iam.v3.SearchAccessPolicyBindingsResponse.Builder.class); + } + + // Construct using com.google.iam.v3.SearchAccessPolicyBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + } else { + policyBindings_ = null; + policyBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_SearchAccessPolicyBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.SearchAccessPolicyBindingsResponse getDefaultInstanceForType() { + return com.google.iam.v3.SearchAccessPolicyBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.SearchAccessPolicyBindingsResponse build() { + com.google.iam.v3.SearchAccessPolicyBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.SearchAccessPolicyBindingsResponse buildPartial() { + com.google.iam.v3.SearchAccessPolicyBindingsResponse result = + new com.google.iam.v3.SearchAccessPolicyBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.iam.v3.SearchAccessPolicyBindingsResponse result) { + if (policyBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + policyBindings_ = java.util.Collections.unmodifiableList(policyBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.policyBindings_ = policyBindings_; + } else { + result.policyBindings_ = policyBindingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.iam.v3.SearchAccessPolicyBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.SearchAccessPolicyBindingsResponse) { + return mergeFrom((com.google.iam.v3.SearchAccessPolicyBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.SearchAccessPolicyBindingsResponse other) { + if (other == com.google.iam.v3.SearchAccessPolicyBindingsResponse.getDefaultInstance()) + return this; + if (policyBindingsBuilder_ == null) { + if (!other.policyBindings_.isEmpty()) { + if (policyBindings_.isEmpty()) { + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePolicyBindingsIsMutable(); + policyBindings_.addAll(other.policyBindings_); + } + onChanged(); + } + } else { + if (!other.policyBindings_.isEmpty()) { + if (policyBindingsBuilder_.isEmpty()) { + policyBindingsBuilder_.dispose(); + policyBindingsBuilder_ = null; + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + policyBindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPolicyBindingsFieldBuilder() + : null; + } else { + policyBindingsBuilder_.addAllMessages(other.policyBindings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.iam.v3.PolicyBinding m = + input.readMessage(com.google.iam.v3.PolicyBinding.parser(), extensionRegistry); + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(m); + } else { + policyBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List policyBindings_ = + java.util.Collections.emptyList(); + + private void ensurePolicyBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + policyBindings_ = new java.util.ArrayList(policyBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3.PolicyBinding, + com.google.iam.v3.PolicyBinding.Builder, + com.google.iam.v3.PolicyBindingOrBuilder> + policyBindingsBuilder_; + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public java.util.List getPolicyBindingsList() { + if (policyBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyBindings_); + } else { + return policyBindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public int getPolicyBindingsCount() { + if (policyBindingsBuilder_ == null) { + return policyBindings_.size(); + } else { + return policyBindingsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3.PolicyBinding getPolicyBindings(int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); + } else { + return policyBindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public Builder setPolicyBindings(int index, com.google.iam.v3.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, value); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public Builder setPolicyBindings( + int index, com.google.iam.v3.PolicyBinding.Builder builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public Builder addPolicyBindings(com.google.iam.v3.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public Builder addPolicyBindings(int index, com.google.iam.v3.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public Builder addPolicyBindings(com.google.iam.v3.PolicyBinding.Builder builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public Builder addPolicyBindings( + int index, com.google.iam.v3.PolicyBinding.Builder builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public Builder addAllPolicyBindings( + java.lang.Iterable values) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyBindings_); + onChanged(); + } else { + policyBindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public Builder clearPolicyBindings() { + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + policyBindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public Builder removePolicyBindings(int index) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.remove(index); + onChanged(); + } else { + policyBindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3.PolicyBinding.Builder getPolicyBindingsBuilder(int index) { + return internalGetPolicyBindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3.PolicyBindingOrBuilder getPolicyBindingsOrBuilder(int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); + } else { + return policyBindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public java.util.List + getPolicyBindingsOrBuilderList() { + if (policyBindingsBuilder_ != null) { + return policyBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyBindings_); + } + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3.PolicyBinding.Builder addPolicyBindingsBuilder() { + return internalGetPolicyBindingsFieldBuilder() + .addBuilder(com.google.iam.v3.PolicyBinding.getDefaultInstance()); + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3.PolicyBinding.Builder addPolicyBindingsBuilder(int index) { + return internalGetPolicyBindingsFieldBuilder() + .addBuilder(index, com.google.iam.v3.PolicyBinding.getDefaultInstance()); + } + + /** + * + * + *
        +     * The policy bindings that reference the specified policy.
        +     * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + public java.util.List getPolicyBindingsBuilderList() { + return internalGetPolicyBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3.PolicyBinding, + com.google.iam.v3.PolicyBinding.Builder, + com.google.iam.v3.PolicyBindingOrBuilder> + internalGetPolicyBindingsFieldBuilder() { + if (policyBindingsBuilder_ == null) { + policyBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3.PolicyBinding, + com.google.iam.v3.PolicyBinding.Builder, + com.google.iam.v3.PolicyBindingOrBuilder>( + policyBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + policyBindings_ = null; + } + return policyBindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. A token, which can be sent as `page_token` to retrieve the next
        +     * page. If this field is omitted, there are no subsequent pages.
        +     * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.SearchAccessPolicyBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.SearchAccessPolicyBindingsResponse) + private static final com.google.iam.v3.SearchAccessPolicyBindingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.SearchAccessPolicyBindingsResponse(); + } + + public static com.google.iam.v3.SearchAccessPolicyBindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAccessPolicyBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.SearchAccessPolicyBindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsResponseOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..4e4de9537e6b --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchAccessPolicyBindingsResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface SearchAccessPolicyBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.SearchAccessPolicyBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + java.util.List getPolicyBindingsList(); + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + com.google.iam.v3.PolicyBinding getPolicyBindings(int index); + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + int getPolicyBindingsCount(); + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + java.util.List + getPolicyBindingsOrBuilderList(); + + /** + * + * + *
        +   * The policy bindings that reference the specified policy.
        +   * 
        + * + * repeated .google.iam.v3.PolicyBinding policy_bindings = 1; + */ + com.google.iam.v3.PolicyBindingOrBuilder getPolicyBindingsOrBuilder(int index); + + /** + * + * + *
        +   * Optional. A token, which can be sent as `page_token` to retrieve the next
        +   * page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
        +   * Optional. A token, which can be sent as `page_token` to retrieve the next
        +   * page. If this field is omitted, there are no subsequent pages.
        +   * 
        + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchTargetPolicyBindingsRequest.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchTargetPolicyBindingsRequest.java index 4dace29c9dcb..0f38ac1c3593 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchTargetPolicyBindingsRequest.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchTargetPolicyBindingsRequest.java @@ -56,6 +56,7 @@ private SearchTargetPolicyBindingsRequest() { target_ = ""; pageToken_ = ""; parent_ = ""; + filter_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -154,8 +155,7 @@ public com.google.protobuf.ByteString getTargetBytes() { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. *
        * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -307,6 +307,77 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int FILTER_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
        +   * Optional. Filtering currently only supports the kind of policies to return,
        +   * and must be in the format "policy_kind={policy_kind}".
        +   *
        +   * If String is empty, bindings bound to all kinds of policies would be
        +   * returned.
        +   *
        +   * The only supported values are the following:
        +   *
        +   * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
        +   * * "policy_kind=ACCESS"
        +   * 
        + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +   * Optional. Filtering currently only supports the kind of policies to return,
        +   * and must be in the format "policy_kind={policy_kind}".
        +   *
        +   * If String is empty, bindings bound to all kinds of policies would be
        +   * returned.
        +   *
        +   * The only supported values are the following:
        +   *
        +   * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
        +   * * "policy_kind=ACCESS"
        +   * 
        + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -333,6 +404,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, parent_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, filter_); + } getUnknownFields().writeTo(output); } @@ -354,6 +428,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, parent_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -374,6 +451,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -393,6 +471,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -537,6 +617,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; parent_ = ""; + filter_ = ""; return this; } @@ -585,6 +666,9 @@ private void buildPartial0(com.google.iam.v3.SearchTargetPolicyBindingsRequest r if (((from_bitField0_ & 0x00000008) != 0)) { result.parent_ = parent_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } } @java.lang.Override @@ -618,6 +702,11 @@ public Builder mergeFrom(com.google.iam.v3.SearchTargetPolicyBindingsRequest oth bitField0_ |= 0x00000008; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -668,6 +757,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 50: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -852,8 +947,7 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. *
        * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -872,8 +966,7 @@ public int getPageSize() { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -896,8 +989,7 @@ public Builder setPageSize(int value) { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1218,6 +1310,162 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filter_ = ""; + + /** + * + * + *
        +     * Optional. Filtering currently only supports the kind of policies to return,
        +     * and must be in the format "policy_kind={policy_kind}".
        +     *
        +     * If String is empty, bindings bound to all kinds of policies would be
        +     * returned.
        +     *
        +     * The only supported values are the following:
        +     *
        +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
        +     * * "policy_kind=ACCESS"
        +     * 
        + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. Filtering currently only supports the kind of policies to return,
        +     * and must be in the format "policy_kind={policy_kind}".
        +     *
        +     * If String is empty, bindings bound to all kinds of policies would be
        +     * returned.
        +     *
        +     * The only supported values are the following:
        +     *
        +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
        +     * * "policy_kind=ACCESS"
        +     * 
        + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
        +     * Optional. Filtering currently only supports the kind of policies to return,
        +     * and must be in the format "policy_kind={policy_kind}".
        +     *
        +     * If String is empty, bindings bound to all kinds of policies would be
        +     * returned.
        +     *
        +     * The only supported values are the following:
        +     *
        +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
        +     * * "policy_kind=ACCESS"
        +     * 
        + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Filtering currently only supports the kind of policies to return,
        +     * and must be in the format "policy_kind={policy_kind}".
        +     *
        +     * If String is empty, bindings bound to all kinds of policies would be
        +     * returned.
        +     *
        +     * The only supported values are the following:
        +     *
        +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
        +     * * "policy_kind=ACCESS"
        +     * 
        + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Filtering currently only supports the kind of policies to return,
        +     * and must be in the format "policy_kind={policy_kind}".
        +     *
        +     * If String is empty, bindings bound to all kinds of policies would be
        +     * returned.
        +     *
        +     * The only supported values are the following:
        +     *
        +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
        +     * * "policy_kind=ACCESS"
        +     * 
        + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.iam.v3.SearchTargetPolicyBindingsRequest) } diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchTargetPolicyBindingsRequestOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchTargetPolicyBindingsRequestOrBuilder.java index 404c52c232a3..cd665c3fc7ff 100644 --- a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchTargetPolicyBindingsRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/SearchTargetPolicyBindingsRequestOrBuilder.java @@ -77,8 +77,7 @@ public interface SearchTargetPolicyBindingsRequestOrBuilder * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -172,4 +171,48 @@ public interface SearchTargetPolicyBindingsRequestOrBuilder * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Optional. Filtering currently only supports the kind of policies to return,
        +   * and must be in the format "policy_kind={policy_kind}".
        +   *
        +   * If String is empty, bindings bound to all kinds of policies would be
        +   * returned.
        +   *
        +   * The only supported values are the following:
        +   *
        +   * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
        +   * * "policy_kind=ACCESS"
        +   * 
        + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
        +   * Optional. Filtering currently only supports the kind of policies to return,
        +   * and must be in the format "policy_kind={policy_kind}".
        +   *
        +   * If String is empty, bindings bound to all kinds of policies would be
        +   * returned.
        +   *
        +   * The only supported values are the following:
        +   *
        +   * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
        +   * * "policy_kind=ACCESS"
        +   * 
        + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/UpdateAccessPolicyRequest.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/UpdateAccessPolicyRequest.java new file mode 100644 index 000000000000..3d5f374ff4c4 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/UpdateAccessPolicyRequest.java @@ -0,0 +1,856 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +/** + * + * + *
        + * Request message for UpdateAccessPolicy method.
        + * 
        + * + * Protobuf type {@code google.iam.v3.UpdateAccessPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAccessPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3.UpdateAccessPolicyRequest) + UpdateAccessPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateAccessPolicyRequest"); + } + + // Use UpdateAccessPolicyRequest.newBuilder() to construct. + private UpdateAccessPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAccessPolicyRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_UpdateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_UpdateAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.UpdateAccessPolicyRequest.class, + com.google.iam.v3.UpdateAccessPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int ACCESS_POLICY_FIELD_NUMBER = 1; + private com.google.iam.v3.AccessPolicy accessPolicy_; + + /** + * + * + *
        +   * Required. The access policy to update.
        +   *
        +   * The access policy's `name` field is used to identify the
        +   * policy to update.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + @java.lang.Override + public boolean hasAccessPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Required. The access policy to update.
        +   *
        +   * The access policy's `name` field is used to identify the
        +   * policy to update.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicy getAccessPolicy() { + return accessPolicy_ == null + ? com.google.iam.v3.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + + /** + * + * + *
        +   * Required. The access policy to update.
        +   *
        +   * The access policy's `name` field is used to identify the
        +   * policy to update.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3.AccessPolicyOrBuilder getAccessPolicyOrBuilder() { + return accessPolicy_ == null + ? com.google.iam.v3.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + + /** + * + * + *
        +   * Optional. If set, validate the request and preview the update, but do not
        +   * actually post it.
        +   * 
        + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAccessPolicy()); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccessPolicy()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3.UpdateAccessPolicyRequest)) { + return super.equals(obj); + } + com.google.iam.v3.UpdateAccessPolicyRequest other = + (com.google.iam.v3.UpdateAccessPolicyRequest) obj; + + if (hasAccessPolicy() != other.hasAccessPolicy()) return false; + if (hasAccessPolicy()) { + if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAccessPolicy()) { + hash = (37 * hash) + ACCESS_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAccessPolicy().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3.UpdateAccessPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request message for UpdateAccessPolicy method.
        +   * 
        + * + * Protobuf type {@code google.iam.v3.UpdateAccessPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3.UpdateAccessPolicyRequest) + com.google.iam.v3.UpdateAccessPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_UpdateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_UpdateAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3.UpdateAccessPolicyRequest.class, + com.google.iam.v3.UpdateAccessPolicyRequest.Builder.class); + } + + // Construct using com.google.iam.v3.UpdateAccessPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAccessPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accessPolicy_ = null; + if (accessPolicyBuilder_ != null) { + accessPolicyBuilder_.dispose(); + accessPolicyBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3.AccessPoliciesProto + .internal_static_google_iam_v3_UpdateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3.UpdateAccessPolicyRequest getDefaultInstanceForType() { + return com.google.iam.v3.UpdateAccessPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3.UpdateAccessPolicyRequest build() { + com.google.iam.v3.UpdateAccessPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3.UpdateAccessPolicyRequest buildPartial() { + com.google.iam.v3.UpdateAccessPolicyRequest result = + new com.google.iam.v3.UpdateAccessPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3.UpdateAccessPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accessPolicy_ = + accessPolicyBuilder_ == null ? accessPolicy_ : accessPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3.UpdateAccessPolicyRequest) { + return mergeFrom((com.google.iam.v3.UpdateAccessPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3.UpdateAccessPolicyRequest other) { + if (other == com.google.iam.v3.UpdateAccessPolicyRequest.getDefaultInstance()) return this; + if (other.hasAccessPolicy()) { + mergeAccessPolicy(other.getAccessPolicy()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetAccessPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.iam.v3.AccessPolicy accessPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicy, + com.google.iam.v3.AccessPolicy.Builder, + com.google.iam.v3.AccessPolicyOrBuilder> + accessPolicyBuilder_; + + /** + * + * + *
        +     * Required. The access policy to update.
        +     *
        +     * The access policy's `name` field is used to identify the
        +     * policy to update.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + public boolean hasAccessPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +     * Required. The access policy to update.
        +     *
        +     * The access policy's `name` field is used to identify the
        +     * policy to update.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + public com.google.iam.v3.AccessPolicy getAccessPolicy() { + if (accessPolicyBuilder_ == null) { + return accessPolicy_ == null + ? com.google.iam.v3.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } else { + return accessPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Required. The access policy to update.
        +     *
        +     * The access policy's `name` field is used to identify the
        +     * policy to update.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessPolicy(com.google.iam.v3.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessPolicy_ = value; + } else { + accessPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The access policy to update.
        +     *
        +     * The access policy's `name` field is used to identify the
        +     * policy to update.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessPolicy(com.google.iam.v3.AccessPolicy.Builder builderForValue) { + if (accessPolicyBuilder_ == null) { + accessPolicy_ = builderForValue.build(); + } else { + accessPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The access policy to update.
        +     *
        +     * The access policy's `name` field is used to identify the
        +     * policy to update.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccessPolicy(com.google.iam.v3.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && accessPolicy_ != null + && accessPolicy_ != com.google.iam.v3.AccessPolicy.getDefaultInstance()) { + getAccessPolicyBuilder().mergeFrom(value); + } else { + accessPolicy_ = value; + } + } else { + accessPolicyBuilder_.mergeFrom(value); + } + if (accessPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Required. The access policy to update.
        +     *
        +     * The access policy's `name` field is used to identify the
        +     * policy to update.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccessPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + accessPolicy_ = null; + if (accessPolicyBuilder_ != null) { + accessPolicyBuilder_.dispose(); + accessPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The access policy to update.
        +     *
        +     * The access policy's `name` field is used to identify the
        +     * policy to update.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicy.Builder getAccessPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAccessPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. The access policy to update.
        +     *
        +     * The access policy's `name` field is used to identify the
        +     * policy to update.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3.AccessPolicyOrBuilder getAccessPolicyOrBuilder() { + if (accessPolicyBuilder_ != null) { + return accessPolicyBuilder_.getMessageOrBuilder(); + } else { + return accessPolicy_ == null + ? com.google.iam.v3.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + } + + /** + * + * + *
        +     * Required. The access policy to update.
        +     *
        +     * The access policy's `name` field is used to identify the
        +     * policy to update.
        +     * 
        + * + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicy, + com.google.iam.v3.AccessPolicy.Builder, + com.google.iam.v3.AccessPolicyOrBuilder> + internalGetAccessPolicyFieldBuilder() { + if (accessPolicyBuilder_ == null) { + accessPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3.AccessPolicy, + com.google.iam.v3.AccessPolicy.Builder, + com.google.iam.v3.AccessPolicyOrBuilder>( + getAccessPolicy(), getParentForChildren(), isClean()); + accessPolicy_ = null; + } + return accessPolicyBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
        +     * Optional. If set, validate the request and preview the update, but do not
        +     * actually post it.
        +     * 
        + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
        +     * Optional. If set, validate the request and preview the update, but do not
        +     * actually post it.
        +     * 
        + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. If set, validate the request and preview the update, but do not
        +     * actually post it.
        +     * 
        + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3.UpdateAccessPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3.UpdateAccessPolicyRequest) + private static final com.google.iam.v3.UpdateAccessPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3.UpdateAccessPolicyRequest(); + } + + public static com.google.iam.v3.UpdateAccessPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAccessPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.iam.v3.UpdateAccessPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/UpdateAccessPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/UpdateAccessPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..9a7ce6d3678f --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/java/com/google/iam/v3/UpdateAccessPolicyRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3/access_policies_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.iam.v3; + +@com.google.protobuf.Generated +public interface UpdateAccessPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3.UpdateAccessPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The access policy to update.
        +   *
        +   * The access policy's `name` field is used to identify the
        +   * policy to update.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + boolean hasAccessPolicy(); + + /** + * + * + *
        +   * Required. The access policy to update.
        +   *
        +   * The access policy's `name` field is used to identify the
        +   * policy to update.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + com.google.iam.v3.AccessPolicy getAccessPolicy(); + + /** + * + * + *
        +   * Required. The access policy to update.
        +   *
        +   * The access policy's `name` field is used to identify the
        +   * policy to update.
        +   * 
        + * + * .google.iam.v3.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3.AccessPolicyOrBuilder getAccessPolicyOrBuilder(); + + /** + * + * + *
        +   * Optional. If set, validate the request and preview the update, but do not
        +   * actually post it.
        +   * 
        + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/access_policies_service.proto b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/access_policies_service.proto new file mode 100644 index 000000000000..4995fec21eb6 --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/access_policies_service.proto @@ -0,0 +1,329 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.iam.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/iam/v3/access_policy_resources.proto"; +import "google/iam/v3/operation_metadata.proto"; +import "google/iam/v3/policy_binding_resources.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; + +option csharp_namespace = "Google.Cloud.Iam.V3"; +option go_package = "cloud.google.com/go/iam/apiv3/iampb;iampb"; +option java_multiple_files = true; +option java_outer_classname = "AccessPoliciesProto"; +option java_package = "com.google.iam.v3"; +option php_namespace = "Google\\Cloud\\Iam\\V3"; + +// Manages Identity and Access Management (IAM) access policies. +service AccessPolicies { + option (google.api.default_host) = "iam.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates an access policy, and returns a long running operation. + rpc CreateAccessPolicy(CreateAccessPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*}/accessPolicies" + body: "access_policy" + additional_bindings { + post: "/v3/{parent=folders/*/locations/*}/accessPolicies" + body: "access_policy" + } + additional_bindings { + post: "/v3/{parent=organizations/*/locations/*}/accessPolicies" + body: "access_policy" + } + }; + option (google.api.method_signature) = + "parent,access_policy,access_policy_id"; + option (google.longrunning.operation_info) = { + response_type: "AccessPolicy" + metadata_type: "OperationMetadata" + }; + } + + // Gets an access policy. + rpc GetAccessPolicy(GetAccessPolicyRequest) returns (AccessPolicy) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/accessPolicies/*}" + additional_bindings { + get: "/v3/{name=folders/*/locations/*/accessPolicies/*}" + } + additional_bindings { + get: "/v3/{name=organizations/*/locations/*/accessPolicies/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates an access policy. + rpc UpdateAccessPolicy(UpdateAccessPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v3/{access_policy.name=projects/*/locations/*/accessPolicies/*}" + body: "access_policy" + additional_bindings { + patch: "/v3/{access_policy.name=folders/*/locations/*/accessPolicies/*}" + body: "access_policy" + } + additional_bindings { + patch: "/v3/{access_policy.name=organizations/*/locations/*/accessPolicies/*}" + body: "access_policy" + } + }; + option (google.longrunning.operation_info) = { + response_type: "AccessPolicy" + metadata_type: "OperationMetadata" + }; + } + + // Deletes an access policy. + rpc DeleteAccessPolicy(DeleteAccessPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/accessPolicies/*}" + additional_bindings { + delete: "/v3/{name=folders/*/locations/*/accessPolicies/*}" + } + additional_bindings { + delete: "/v3/{name=organizations/*/locations/*/accessPolicies/*}" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists access policies. + rpc ListAccessPolicies(ListAccessPoliciesRequest) + returns (ListAccessPoliciesResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*}/accessPolicies" + additional_bindings { + get: "/v3/{parent=folders/*/locations/*}/accessPolicies" + } + additional_bindings { + get: "/v3/{parent=organizations/*/locations/*}/accessPolicies" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Returns all policy bindings that bind a specific policy if a user has + // searchPolicyBindings permission on that policy. + rpc SearchAccessPolicyBindings(SearchAccessPolicyBindingsRequest) + returns (SearchAccessPolicyBindingsResponse) { + option (google.api.http) = { + get: "/v3/{name=organizations/*/locations/*/accessPolicies/*}:searchPolicyBindings" + additional_bindings { + get: "/v3/{name=folders/*/locations/*/accessPolicies/*}:searchPolicyBindings" + } + additional_bindings { + get: "/v3/{name=projects/*/locations/*/accessPolicies/*}:searchPolicyBindings" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for CreateAccessPolicy method. +message CreateAccessPolicyRequest { + // Required. The parent resource where this access policy will be created. + // + // Format: + // `projects/{project_id}/locations/{location}` + // `projects/{project_number}/locations/{location}` + // `folders/{folder_id}/locations/{location}` + // `organizations/{organization_id}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "iam.googleapis.com/AccessPolicy" + } + ]; + + // Required. The ID to use for the access policy, which + // will become the final component of the access policy's + // resource name. + // + // This value must start with a lowercase letter followed by up to 62 + // lowercase letters, numbers, hyphens, or dots. Pattern, + // /[a-z][a-z0-9-\.]{2,62}/. + // + // This value must be unique among all access policies with the same parent. + string access_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The access policy to create. + AccessPolicy access_policy = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If set, validate the request and preview the creation, but do not + // actually post it. + bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for GetAccessPolicy method. +message GetAccessPolicyRequest { + // Required. The name of the access policy to retrieve. + // + // Format: + // `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + // `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/AccessPolicy" + } + ]; +} + +// Request message for UpdateAccessPolicy method. +message UpdateAccessPolicyRequest { + // Required. The access policy to update. + // + // The access policy's `name` field is used to identify the + // policy to update. + AccessPolicy access_policy = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If set, validate the request and preview the update, but do not + // actually post it. + bool validate_only = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for DeleteAccessPolicy method. +message DeleteAccessPolicyRequest { + // Required. The name of the access policy to delete. + // + // Format: + // `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + // `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/AccessPolicy" + } + ]; + + // Optional. The etag of the access policy. If this is provided, it must match + // the server's etag. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, validate the request and preview the deletion, but do not + // actually post it. + bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the request will force the deletion of the Policy + // even if the Policy references PolicyBindings. + bool force = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for ListAccessPolicies method. +message ListAccessPoliciesRequest { + // Required. The parent resource, which owns the collection of access policy + // resources. + // + // Format: + // `projects/{project_id}/locations/{location}` + // `projects/{project_number}/locations/{location}` + // `folders/{folder_id}/locations/{location}` + // `organizations/{organization_id}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "iam.googleapis.com/AccessPolicy" + } + ]; + + // Optional. The maximum number of access policies to return. The + // service may return fewer than this value. + // + // If unspecified, at most 50 access policies will be returned. Valid value + // ranges from 1 to 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListAccessPolicies` call. Provide this to retrieve the + // subsequent page. + // + // When paginating, all other parameters provided to + // `ListAccessPolicies` must match the call that provided the + // page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListAccessPolicies method. +message ListAccessPoliciesResponse { + // The access policies from the specified parent. + repeated AccessPolicy access_policies = 1; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for SearchAccessPolicyBindings rpc. +message SearchAccessPolicyBindingsRequest { + // Required. The name of the access policy. + // Format: + // `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/AccessPolicy" + } + ]; + + // Optional. The maximum number of policy bindings to return. The service may + // return fewer than this value. + // + // If unspecified, at most 50 policy bindings will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `SearchAccessPolicyBindingsRequest` call. Provide this to + // retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `SearchAccessPolicyBindingsRequest` must match the call + // that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for SearchAccessPolicyBindings rpc. +message SearchAccessPolicyBindingsResponse { + // The policy bindings that reference the specified policy. + repeated PolicyBinding policy_bindings = 1; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/access_policy_resources.proto b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/access_policy_resources.proto new file mode 100644 index 000000000000..0bb2dbff7f9a --- /dev/null +++ b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/access_policy_resources.proto @@ -0,0 +1,216 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.iam.v3; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/expr.proto"; + +option csharp_namespace = "Google.Cloud.Iam.V3"; +option go_package = "cloud.google.com/go/iam/apiv3/iampb;iampb"; +option java_multiple_files = true; +option java_outer_classname = "AccessPolicyResourcesProto"; +option java_package = "com.google.iam.v3"; +option php_namespace = "Google\\Cloud\\Iam\\V3"; + +// An IAM access policy resource. +message AccessPolicy { + option (google.api.resource) = { + type: "iam.googleapis.com/AccessPolicy" + pattern: "organizations/{organization}/locations/{location}/accessPolicies/{access_policy}" + pattern: "folders/{folder}/locations/{location}/accessPolicies/{access_policy}" + pattern: "projects/{project}/locations/{location}/accessPolicies/{access_policy}" + plural: "accessPolicies" + singular: "accessPolicy" + }; + + // Identifier. The resource name of the access policy. + // + // The following formats are supported: + // + // * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}` + // * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}` + // * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}` + // * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The globally unique ID of the access policy. + string uid = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. The etag for the access policy. + // If this is provided on update, it must match the server's etag. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of the access policy. Must be less than + // or equal to 63 characters. + string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User defined annotations. See + // https://google.aip.dev/148#annotations for more details such as format and + // size limitations + map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The time when the access policy was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the access policy was most recently + // updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The details for the access policy. + AccessPolicyDetails details = 8 [(google.api.field_behavior) = OPTIONAL]; +} + +// Access policy details. +message AccessPolicyDetails { + // Required. A list of access policy rules. + repeated AccessPolicyRule rules = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Access Policy Rule that determines the behavior of the policy. +message AccessPolicyRule { + // Attributes that are used to determine whether this rule applies to a + // request. + message Operation { + // Optional. The permissions that are explicitly affected by this rule. Each + // permission uses the format `{service_fqdn}/{resource}.{verb}`, where + // `{service_fqdn}` is the fully qualified domain name for the service. + // Currently supported permissions are as follows: + // + // * `eventarc.googleapis.com/messageBuses.publish`. + repeated string permissions = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the permissions that this rule excludes from the set + // of affected permissions given by `permissions`. If a permission appears + // in `permissions` _and_ in `excluded_permissions` then it will _not_ be + // subject to the policy effect. + // + // The excluded permissions can be specified using the same syntax as + // `permissions`. + repeated string excluded_permissions = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // An effect to describe the access relationship. + enum Effect { + // The effect is unspecified. + EFFECT_UNSPECIFIED = 0; + + // The policy will deny access if it evaluates to true. + DENY = 1; + + // The policy will grant access if it evaluates to true. + ALLOW = 2; + } + + // Optional. Customer specified description of the rule. Must be less than or + // equal to 256 characters. + optional string description = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The effect of the rule. + optional Effect effect = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The identities for which this rule's effect governs using one or + // more permissions on Google Cloud resources. This field can contain the + // following values: + // + // * `principal://goog/subject/{email_id}`: A specific Google Account. + // Includes Gmail, Cloud Identity, and Google Workspace user accounts. For + // example, `principal://goog/subject/alice@example.com`. + // + // * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`: + // A Google Cloud service account. For example, + // `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`. + // + // * `principalSet://goog/group/{group_id}`: A Google group. For example, + // `principalSet://goog/group/admins@example.com`. + // + // * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the + // principals associated with the specified Google Workspace or Cloud + // Identity customer ID. For example, + // `principalSet://goog/cloudIdentityCustomerId/C01Abc35`. + // + // + // If an identifier that was previously set on a policy is soft deleted, then + // calls to read that policy will return the identifier with a deleted + // prefix. Users cannot set identifiers with this syntax. + // + // * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific + // Google Account that was deleted recently. For example, + // `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If + // the Google Account is recovered, this identifier reverts to the standard + // identifier for a Google Account. + // + // * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group + // that was deleted recently. For example, + // `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. + // If the Google group is restored, this identifier reverts to the standard + // identifier for a Google group. + // + // * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`: + // A Google Cloud service account that was deleted recently. For example, + // `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`. + // If the service account is undeleted, this identifier reverts to the + // standard identifier for a service account. + repeated string principals = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The identities that are excluded from the access policy rule, + // even if they are listed in the `principals`. For example, you could add a + // Google group to the `principals`, then exclude specific users who belong to + // that group. + repeated string excluded_principals = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Attributes that are used to determine whether this rule applies + // to a request. + Operation operation = 10 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The conditions that determine whether this rule applies to a + // request. Conditions are identified by their key, which is the FQDN of the + // service that they are relevant to. For example: + // + // ``` + // "conditions": { + // "iam.googleapis.com": { + // "expression": + // } + // } + // ``` + // + // Each rule is evaluated independently. If this rule does not apply + // to a request, other rules might still apply. + // Currently supported keys are as follows: + // + // + // * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate + // resource fields. + // + // * `iam.googleapis.com`: Can use `CEL` functions that evaluate + // [resource + // tags](https://cloud.google.com/iam/help/conditions/resource-tags) and + // combine them using boolean and logical operators. Other functions and + // operators are not supported. + map conditions = 9 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/operation_metadata.proto b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/operation_metadata.proto index b3865902899b..307288859f4d 100644 --- a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/operation_metadata.proto +++ b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/operation_metadata.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/policy_binding_resources.proto b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/policy_binding_resources.proto index 34bf1b7fa9b2..9085717fa152 100644 --- a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/policy_binding_resources.proto +++ b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/policy_binding_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,44 +40,61 @@ message PolicyBinding { singular: "policyBinding" }; - // Target is the full resource name of the resource to which the policy will + // The full resource name of the resource to which the policy will // be bound. Immutable once set. message Target { // The different types of targets that can be bound to a policy. oneof target { - // Immutable. Full Resource Name used for principal access boundary policy - // bindings. The principal set must be directly parented by the policy - // binding's parent or same as the parent if the target is a - // project/folder/organization. + // Immutable. The full resource name that's used for principal access + // boundary policy bindings. The principal set must be directly parented + // by the policy binding's parent or same as the parent if the target is a + // project, folder, or organization. // // Examples: - // * For binding's parented by an organization: - // * Organization: - // `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` - // * Workforce Identity: - // `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID` - // * Workspace Identity: - // `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID` - // * For binding's parented by a folder: - // * Folder: - // `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` - // * For binding's parented by a project: - // * Project: + // + // * For bindings parented by an organization: + // * Organization: + // `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` + // * Workforce Identity: + // `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID` + // * Workspace Identity: + // `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID` + // * For bindings parented by a folder: + // * Folder: + // `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` + // * For bindings parented by a project: + // * Project: + // * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER` + // * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID` + // * Workload Identity Pool: + // `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID` + string principal_set = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The full resource name that's used for access policy + // bindings. + // + // Examples: + // + // * Organization: + // `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` + // * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` + // * Project: // * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER` // * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID` - // * Workload Identity Pool: - // `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID` - string principal_set = 1 [(google.api.field_behavior) = IMMUTABLE]; + string resource = 2 [(google.api.field_behavior) = IMMUTABLE]; } } - // Different policy kinds supported in this binding. + // The different policy kinds supported in this binding. enum PolicyKind { // Unspecified policy kind; Not a valid state POLICY_KIND_UNSPECIFIED = 0; // Principal access boundary policy kind PRINCIPAL_ACCESS_BOUNDARY = 1; + + // Access policy kind. + ACCESS = 2; } // Identifier. The name of the policy binding, in the format @@ -113,8 +130,8 @@ message PolicyBinding { // size limitations map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; - // Required. Immutable. Target is the full resource name of the resource to - // which the policy will be bound. Immutable once set. + // Required. Immutable. The full resource name of the resource to which the + // policy will be bound. Immutable once set. Target target = 6 [ (google.api.field_behavior) = IMMUTABLE, (google.api.field_behavior) = REQUIRED @@ -166,13 +183,14 @@ message PolicyBinding { // - `principal.type != ` // - `principal.type in []` // - // Supported principal types are Workspace, Workforce Pool, Workload Pool and - // Service Account. Allowed string must be one of: + // Supported principal types are workspace, workforce pool, workload pool, + // service account, and agent identity. Allowed string must be one of: // - // - iam.googleapis.com/WorkspaceIdentity - // - iam.googleapis.com/WorkforcePoolIdentity - // - iam.googleapis.com/WorkloadPoolIdentity - // - iam.googleapis.com/ServiceAccount + // - `iam.googleapis.com/WorkspaceIdentity` + // - `iam.googleapis.com/WorkforcePoolIdentity` + // - `iam.googleapis.com/WorkloadPoolIdentity` + // - `iam.googleapis.com/ServiceAccount` + // - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) google.type.Expr condition = 8 [(google.api.field_behavior) = OPTIONAL]; // Output only. The time when the policy binding was created. diff --git a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/policy_bindings_service.proto b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/policy_bindings_service.proto index 219209797ac4..33e86ed5f1f3 100644 --- a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/policy_bindings_service.proto +++ b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/policy_bindings_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -50,7 +50,7 @@ service PolicyBindings { // Creates a policy binding and returns a long-running operation. // Callers will need the IAM permissions on both the policy and target. - // Once the binding is created, the policy is applied to the target. + // After the binding is created, the policy is applied to the target. rpc CreatePolicyBinding(CreatePolicyBindingRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -89,9 +89,7 @@ service PolicyBindings { // Updates a policy binding and returns a long-running operation. // Callers will need the IAM permissions on the policy and target in the - // binding to update, and the IAM permission to remove the existing policy - // from the binding. Target is immutable and cannot be updated. Once the - // binding is updated, the new policy is applied to the target. + // binding to update. Target and policy are immutable and cannot be updated. rpc UpdatePolicyBinding(UpdatePolicyBindingRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -115,7 +113,7 @@ service PolicyBindings { // Deletes a policy binding and returns a long-running operation. // Callers will need the IAM permissions on both the policy and target. - // Once the binding is deleted, the policy no longer applies to the target. + // After the binding is deleted, the policy no longer applies to the target. rpc DeletePolicyBinding(DeletePolicyBindingRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -283,8 +281,7 @@ message ListPolicyBindingsRequest { // Optional. The maximum number of policy bindings to return. The service may // return fewer than this value. // - // If unspecified, at most 50 policy bindings will be returned. - // The maximum value is 1000; values above 1000 will be coerced to 1000. + // The default value is 50. The maximum value is 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListPolicyBindings` call. @@ -295,7 +292,8 @@ message ListPolicyBindingsRequest { string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. An expression for filtering the results of the request. Filter - // rules are case insensitive. Some eligible fields for filtering are: + // rules are case insensitive. Some eligible fields for filtering are the + // following: // // + `target` // + `policy` @@ -335,8 +333,7 @@ message SearchTargetPolicyBindingsRequest { // Optional. The maximum number of policy bindings to return. The service may // return fewer than this value. // - // If unspecified, at most 50 policy bindings will be returned. - // The maximum value is 1000; values above 1000 will be coerced to 1000. + // The default value is 50. The maximum value is 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous @@ -364,6 +361,18 @@ message SearchTargetPolicyBindingsRequest { child_type: "iam.googleapis.com/PolicyBinding" } ]; + + // Optional. Filtering currently only supports the kind of policies to return, + // and must be in the format "policy_kind={policy_kind}". + // + // If String is empty, bindings bound to all kinds of policies would be + // returned. + // + // The only supported values are the following: + // + // * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY", + // * "policy_kind=ACCESS" + string filter = 6 [(google.api.field_behavior) = OPTIONAL]; } // Response message for SearchTargetPolicyBindings method. diff --git a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/principal_access_boundary_policies_service.proto b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/principal_access_boundary_policies_service.proto index 8eb3898fa5f0..03cac761bd5e 100644 --- a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/principal_access_boundary_policies_service.proto +++ b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/principal_access_boundary_policies_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/principal_access_boundary_policy_resources.proto b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/principal_access_boundary_policy_resources.proto index d7e3b36a5d62..197d967e012e 100644 --- a/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/principal_access_boundary_policy_resources.proto +++ b/java-iam/proto-google-iam-v3/src/main/proto/google/iam/v3/principal_access_boundary_policy_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 6a02a0c5c0e1..b10892a69622 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iamcredentials' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.94.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iamcredentials/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iap/README.md b/java-iap/README.md index 630f64369211..e9276adf3f7c 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.50.0 + 0.51.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iap' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.50.0' +implementation 'com.google.cloud:google-cloud-iap:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.51.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iap/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ids/README.md b/java-ids/README.md index e96a4ac74d47..995894f97e8c 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.93.0 + 1.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-ids' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.93.0' +implementation 'com.google.cloud:google-cloud-ids:1.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ids/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index a37f74be3f24..b82a90820b65 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.71.0 + 0.72.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-infra-manager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.71.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.72.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-infra-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.72.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iot/README.md b/java-iot/README.md index 7570719ccefc..2944f9471fb0 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iot' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.94.0' +implementation 'com.google.cloud:google-cloud-iot:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iot/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-java-shopping-merchant-issue-resolution/README.md b/java-java-shopping-merchant-issue-resolution/README.md index c6c226333605..43b962a8bfc1 100644 --- a/java-java-shopping-merchant-issue-resolution/README.md +++ b/java-java-shopping-merchant-issue-resolution/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-issue-resolution - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-java-shopping-merchant-order-tracking/README.md b/java-java-shopping-merchant-order-tracking/README.md index 70b5833831a1..6cb261a190b1 100644 --- a/java-java-shopping-merchant-order-tracking/README.md +++ b/java-java-shopping-merchant-order-tracking/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-order-tracking - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/README.md b/java-kms/README.md index 8110bc739a8f..7343cc5e86e5 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.97.0 + 2.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-kms' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.97.0' +implementation 'com.google.cloud:google-cloud-kms:2.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kms/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 99727a7cce09..d64889619109 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.83.0 + 0.84.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-kmsinventory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.83.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.84.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-language/README.md b/java-language/README.md index 80fbdcd79138..c88bbb84440d 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-language' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.95.0' +implementation 'com.google.cloud:google-cloud-language:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.96.0" ``` ## Authentication @@ -214,7 +214,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-language/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-licensemanager/README.md b/java-licensemanager/README.md index cbddeba6a168..2a5eb03c87c1 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-licensemanager - 0.27.0 + 0.28.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-licensemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-licensemanager:0.27.0' +implementation 'com.google.cloud:google-cloud-licensemanager:0.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.27.0" +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.28.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-licensemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.28.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index e7f8b482f3a4..722f45eb382c 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.96.0 + 0.97.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-life-sciences' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.96.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.97.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-life-sciences/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-locationfinder/README.md b/java-locationfinder/README.md index 4a2e3916fc61..ae82740537da 100644 --- a/java-locationfinder/README.md +++ b/java-locationfinder/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-locationfinder - 0.19.0 + 0.20.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-locationfinder' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-locationfinder:0.19.0' +implementation 'com.google.cloud:google-cloud-locationfinder:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.19.0" +libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.20.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-locationfinder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.20.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-logging/README.md b/java-logging/README.md index 878b5683eb3a..ff3fe6c21fa7 100644 --- a/java-logging/README.md +++ b/java-logging/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-logging - 3.35.0 + 3.36.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-logging' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-logging:3.35.0' +implementation 'com.google.cloud:google-cloud-logging:3.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.36.0" ``` ## Authentication @@ -440,7 +440,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-logging/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-logging.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.36.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-lustre/README.md b/java-lustre/README.md index 62eafa5204d3..7596316c6891 100644 --- a/java-lustre/README.md +++ b/java-lustre/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-lustre - 0.34.0 + 0.35.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-lustre' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-lustre:0.34.0' +implementation 'com.google.cloud:google-cloud-lustre:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.35.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-lustre/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-lustre.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maintenance/README.md b/java-maintenance/README.md index 4c4ea36279a4..defcbd4c635a 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-maintenance - 0.28.0 + 0.29.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-maintenance' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-maintenance:0.28.0' +implementation 'com.google.cloud:google-cloud-maintenance:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.29.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-maintenance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.29.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index 06d5a73c1bec..1559b3545a4d 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managed-identities - 1.92.0 + 1.93.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-managed-identities' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.92.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.93.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managed-identities/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index 25f4e05ae31f..0f28b94f7ccf 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.50.0 + 0.51.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-managedkafka' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.50.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.51.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 67e0e9a2520b..38e70b3f9abc 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-addressvalidation - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.88.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.88.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.89.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-addressvalidation/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-area-insights/README.md b/java-maps-area-insights/README.md index 5c64ef0d2695..41197ac41afc 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-area-insights - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.45.0' +implementation 'com.google.maps:google-maps-area-insights:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.45.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.46.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index 4e18eef0943a..de5568c678a7 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine-delivery - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.41.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.41.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.42.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index fd7d6392ebb8..c6033378e1c8 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.41.0' +implementation 'com.google.maps:google-maps-fleetengine:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.41.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.42.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-geocode/README.md b/java-maps-geocode/README.md index 16fc396c59cc..7abb156a9f3b 100644 --- a/java-maps-geocode/README.md +++ b/java-maps-geocode/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-geocode - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-geocode:0.6.0' +implementation 'com.google.maps:google-maps-geocode:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.6.0" +libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.7.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-geocode/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-geocode.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-geocode/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-geocode/0.7.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-isochrones/README.md b/java-maps-isochrones/README.md index bf26004044f5..4bcb8e4e657e 100644 --- a/java-maps-isochrones/README.md +++ b/java-maps-isochrones/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-isochrones - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-isochrones:0.0.0' +implementation 'com.google.maps:google-maps-isochrones:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-isochrones" % "0.0.0" +libraryDependencies += "com.google.maps" % "google-maps-isochrones" % "0.1.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-isochrones/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-isochrones.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-isochrones/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-isochrones/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-mapmanagement/README.md b/java-maps-mapmanagement/README.md index 343784d74b82..afcd331b8ef3 100644 --- a/java-maps-mapmanagement/README.md +++ b/java-maps-mapmanagement/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapmanagement - 0.3.0 + 0.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapmanagement:0.3.0' +implementation 'com.google.maps:google-maps-mapmanagement:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapmanagement" % "0.3.0" +libraryDependencies += "com.google.maps" % "google-maps-mapmanagement" % "0.4.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapmanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapmanagement/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapmanagement/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index e1b0dd11bed6..dfdfa5ac1503 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapsplatformdatasets - 0.83.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.83.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.83.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.84.0" ``` ## Authentication @@ -156,7 +156,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapsplatformdatasets/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.84.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-navconnect/README.md b/java-maps-navconnect/README.md index bffd794f2d6b..2f3d957680b3 100644 --- a/java-maps-navconnect/README.md +++ b/java-maps-navconnect/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-navconnect - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-navconnect:0.0.0' +implementation 'com.google.maps:google-maps-navconnect:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-navconnect" % "0.0.0" +libraryDependencies += "com.google.maps" % "google-maps-navconnect" % "0.1.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-navconnect/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-navconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-navconnect/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-navconnect/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-places/README.md b/java-maps-places/README.md index cd9d18936d46..5a37333c56f6 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-places - 0.65.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.65.0' +implementation 'com.google.maps:google-maps-places:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.65.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.66.0" ``` ## Authentication @@ -161,7 +161,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-places/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.66.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index 5452941cbbe7..ed712fa59001 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routeoptimization - 0.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.52.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.52.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.53.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index bca547635ac5..d6aaf7d9cfcc 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routing - 1.79.0 + 1.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.79.0' +implementation 'com.google.maps:google-maps-routing:1.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.79.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.80.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routing/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 4f0a0964dec9..f394c9de2f63 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-solar - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.53.0' +implementation 'com.google.maps:google-maps-solar:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.53.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.54.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-solar/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index be7f70b2e1b7..fdd6246b80cd 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.ads-marketingplatform admin - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.43.0' +implementation 'com.google.ads-marketingplatform:admin:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.43.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.44.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index c657cd3696c2..64592463a0e8 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-mediatranslation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.100.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-mediatranslation/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-meet/README.md b/java-meet/README.md index a7a539adc9ed..ac62723f138a 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 0.61.0 + 0.62.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-meet' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.61.0' +implementation 'com.google.cloud:google-cloud-meet:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.62.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-meet/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-memcache/README.md b/java-memcache/README.md index d4ec21497aee..c17efc18783c 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-memcache' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.94.0' +implementation 'com.google.cloud:google-cloud-memcache:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memcache/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index 9bd6e8773a11..6a443238cd05 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.76.0 + 0.77.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-migrationcenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.76.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.77.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-migrationcenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.77.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-modelarmor/README.md b/java-modelarmor/README.md index 623e68b1be9b..65b731aabb61 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-modelarmor - 0.35.0 + 0.36.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-modelarmor' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-modelarmor:0.35.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.36.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-modelarmor.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.36.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 60c0938f07e7..708a09715660 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-dashboard - 2.96.0 + 2.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-monitoring-dashboard' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.96.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-dashboard/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index aea5ec5f200c..388dff5583b5 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-metricsscope - 0.88.0 + 0.89.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-monitoring-metricsscope' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.88.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.89.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-metricsscope/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring/README.md b/java-monitoring/README.md index 417496656aa1..ad2ef3689145 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.95.0 + 3.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-monitoring' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.95.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-netapp/README.md b/java-netapp/README.md index 43b9b1779d46..213ade15d2db 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.73.0 + 0.74.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-netapp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.73.0' +implementation 'com.google.cloud:google-cloud-netapp:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.74.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-netapp/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-management/README.md b/java-network-management/README.md index 32de675fa39b..26a5231801a2 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-management - 1.95.0 + 1.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-network-management' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.95.0' +implementation 'com.google.cloud:google-cloud-network-management:1.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-management/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-security/README.md b/java-network-security/README.md index c0571a91e392..d2f59ab180fc 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.97.0 + 0.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-network-security' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.97.0' +implementation 'com.google.cloud:google-cloud-network-security:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-security/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index a0fc926ff0da..176c8d436821 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.93.0 + 1.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-networkconnectivity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.93.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 7cffff38569a..8ca7c6790041 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.50.0 + 0.51.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-networkservices' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.50.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.51.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-notebooks/README.md b/java-notebooks/README.md index aec360944e77..f8dc13064a1a 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.92.0 + 1.93.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-notebooks' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.92.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.93.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-notebooks/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-optimization/README.md b/java-optimization/README.md index 8214001b1a8c..59cedf25ffa8 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.92.0 + 1.93.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-optimization' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.92.0' +implementation 'com.google.cloud:google-cloud-optimization:1.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.93.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-optimization/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-oracledatabase/README.md b/java-oracledatabase/README.md index 770c36378fbd..ad20b6ad43c4 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-oracledatabase - 0.43.0 + 0.44.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-oracledatabase' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.43.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.44.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 54ffa517c062..8727404728d5 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orchestration-airflow - 1.94.0 + 1.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-orchestration-airflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.94.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-orchestration-airflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 3574c5669610..f4c54d43f9d7 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-orgpolicy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.94.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-config/README.md b/java-os-config/README.md index 62a0291651e5..a3b5a3adf4ea 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-config - 2.96.0 + 2.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-os-config' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.96.0' +implementation 'com.google.cloud:google-cloud-os-config:2.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-config/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-login/README.md b/java-os-login/README.md index 1ce9ad8ed962..c73114d209b6 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-login - 2.93.0 + 2.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-os-login' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.93.0' +implementation 'com.google.cloud:google-cloud-os-login:2.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-login/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index 78d34e53d9a8..31390005c3bf 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 0.57.0 + 0.58.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-parallelstore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.57.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.58.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parallelstore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-parametermanager/README.md b/java-parametermanager/README.md index 19c8fbde254a..da702ebabe2a 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parametermanager - 0.38.0 + 0.39.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-parametermanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.38.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.39.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parametermanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index 0d80ec6ad9bb..87b80ef2c44f 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.125.0 + 0.126.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-phishingprotection' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.125.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.126.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.125.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.126.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-phishingprotection/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.125.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.126.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index b96193d556d4..6b7071d18833 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policy-troubleshooter - 1.93.0 + 1.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-policy-troubleshooter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.93.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index 33bb9107784a..e2ee05d5c131 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.73.0 + 0.74.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-policysimulator' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.73.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.74.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policysimulator/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index 8a5f19bbf5d6..8ee95830f36c 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-private-catalog - 0.96.0 + 0.97.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-private-catalog' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.96.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.97.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-private-catalog/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index ed42757bdb21..ea32fca28a1e 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-privilegedaccessmanager - 0.48.0 + 0.49.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-privilegedaccessmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.48.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.49.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-productregistry/README.md b/java-productregistry/README.md index f6582abdd84c..9de4335323f0 100644 --- a/java-productregistry/README.md +++ b/java-productregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-productregistry - 0.0.0 + 0.1.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-productregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-productregistry:0.0.0' +implementation 'com.google.cloud:google-cloud-productregistry:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-productregistry" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-productregistry" % "0.1.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-productregistry/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-productregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-productregistry/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-productregistry/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-profiler/README.md b/java-profiler/README.md index ce7fa9292e9e..b881021e30e2 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-profiler' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.94.0' +implementation 'com.google.cloud:google-cloud-profiler:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-profiler/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-publicca/README.md b/java-publicca/README.md index 1fc5961ef451..a94c87b29d18 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.91.0 + 0.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-publicca' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.91.0' +implementation 'com.google.cloud:google-cloud-publicca:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-publicca/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7153dde7df04..96e6ddd2a25c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.152.0 + 1.153.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.152.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.153.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.152.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.153.0" ``` ## Authentication @@ -397,7 +397,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.152.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.153.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 2dd5f1e1fedb..8ccb61a4c920 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.77.0 + 0.78.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-rapidmigrationassessment' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.77.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.78.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-rapidmigrationassessment/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.78.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index a196b6a6e3f9..17d1130c914a 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.91.0 + 3.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-recaptchaenterprise' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.91.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recaptchaenterprise/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index c474d1c5bf70..e2e48451b6f2 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.101.0 + 0.102.0 ``` @@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-recommendations-ai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.101.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.102.0" ``` ## Authentication @@ -187,7 +187,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommendations-ai/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommender/README.md b/java-recommender/README.md index 7afada105b8f..86d556867dae 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.96.0 + 2.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-recommender' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.96.0' +implementation 'com.google.cloud:google-cloud-recommender:2.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommender/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index 23e64f06cbff..c94432231ad8 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis-cluster - 0.66.0 + 0.67.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-redis-cluster' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.66.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.67.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis-cluster/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis/README.md b/java-redis/README.md index c987c0b3e366..0428024602db 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.97.0 + 2.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-redis' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.97.0' +implementation 'com.google.cloud:google-cloud-redis:2.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 9b9e77b8f6bf..b0c2a53d2fd9 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.96.0 + 1.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-resourcemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.96.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.97.0" ``` ## Authentication @@ -323,7 +323,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-resourcemanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-retail/README.md b/java-retail/README.md index e00d744c17ae..1b3655d0359b 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.96.0 + 2.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-retail' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.96.0' +implementation 'com.google.cloud:google-cloud-retail:2.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-retail/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-run/README.md b/java-run/README.md index 469f5ef1e235..af85513ada63 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.94.0 + 0.95.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-run' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.94.0' +implementation 'com.google.cloud:google-cloud-run:0.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.95.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-run/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index 69a7097bcd6e..aebc1210ca35 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-saasservicemgmt - 0.24.0 + 0.25.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-saasservicemgmt' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.24.0' +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.25.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-saasservicemgmt.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.25.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-scheduler/README.md b/java-scheduler/README.md index 7f8909040447..c3aca8507274 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-scheduler' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.94.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-scheduler/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 39909ac656cd..e6d9c185c7d2 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-secretmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.94.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-secretmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index b32d62987fbd..3815f26c3e9e 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.64.0 + 0.65.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securesourcemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.64.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.65.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securesourcemanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.65.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index f731b9cd3e2b..ad8f8de023dc 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-security-private-ca - 2.96.0 + 2.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-security-private-ca' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.96.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index b06e387e25b9..cc4ae6f1815a 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter-settings - 0.97.0 + 0.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter-settings' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.97.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter-settings/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index e6fffdbaa7ce..189dde32cc50 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.102.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 77a02ee151b2..e18a60401535 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.62.0 + 0.63.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securitycentermanagement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.62.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.63.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycentermanagement/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.63.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securityposture/README.md b/java-securityposture/README.md index 00c2bc407d37..0879b76707cf 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 0.59.0 + 0.60.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securityposture' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.59.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.60.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securityposture/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securityposture.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-control/README.md b/java-service-control/README.md index 08d304552ec9..924b4bfc93b5 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-control - 1.94.0 + 1.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-control' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.94.0' +implementation 'com.google.cloud:google-cloud-service-control:1.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-control/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-management/README.md b/java-service-management/README.md index cfacc124da38..c948efbd62d2 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-management - 3.92.0 + 3.93.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-management' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.92.0' +implementation 'com.google.cloud:google-cloud-service-management:3.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.93.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-management/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-usage/README.md b/java-service-usage/README.md index 5e4fe9da82d2..dd4f6143fc90 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-usage - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-usage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.94.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 0835a7c8be5a..4ef6107af3dc 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-servicedirectory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.95.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicedirectory/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index e229b626be67..fae53d11ef55 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 0.61.0 + 0.62.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-servicehealth' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.61.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.62.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicehealth/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shell/README.md b/java-shell/README.md index 3de6c768f93b..78670500d46e 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.93.0 + 2.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-shell' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.93.0' +implementation 'com.google.cloud:google-cloud-shell:2.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-shell/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index c5fa2f0806fb..89f14823db5b 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-css - 0.62.0 + 0.63.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.62.0' +implementation 'com.google.shopping:google-shopping-css:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.62.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.63.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-css/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.63.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 73dac86ffe94..7f7617ee8e39 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-accounts - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 45ad829b48fa..18542a04de16 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-conversions - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 40d4079262e6..3d41a1f437f3 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-datasources - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 5d51b56723a9..93bd1f79ee7a 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-inventories - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 1ebd98746e95..9ba2453d2fdd 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-lfp - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-notifications/README.md b/java-shopping-merchant-notifications/README.md index 20de6c902694..5ee112e09a71 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-notifications - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-notifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index b96901675fd7..3689ea1db55a 100644 --- a/java-shopping-merchant-product-studio/README.md +++ b/java-shopping-merchant-product-studio/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-productstudio - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.34.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.34.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.35.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-productstudio.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 0ce65678f1ca..b595a36b5454 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-products - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-products:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 9a3f51dda151..3244dd226049 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-promotions - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index 0b98dd748ad7..774de7c9b2ce 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-quota - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index c49cf64e4dab..828ed9edd4fe 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reports - 1.22.0 + 1.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:1.22.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:1.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.22.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.23.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reports/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index 06855ca55a30..1206595ee379 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reviews - 0.40.0 + 0.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.40.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.40.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.41.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-spanner/README.md b/java-spanner/README.md index d3d5b7a8dabe..9629c7ca9ead 100644 --- a/java-spanner/README.md +++ b/java-spanner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanner - 6.119.0 + 6.120.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-spanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.119.0' +implementation 'com.google.cloud:google-cloud-spanner:6.120.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.119.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.120.0" ``` ## Authentication @@ -152,7 +152,7 @@ the Cloud Spanner Java client. Cloud Spanner client supports [client-side metrics](https://cloud.google.com/spanner/docs/view-manage-client-side-metrics) that you can use along with server-side metrics to optimize performance and troubleshoot performance issues if they occur. -Client-side metrics are measured from the time a request leaves your application to the time your application receives the response. +Client-side metrics are measured from the time a request leaves your application to the time your application receives the response. In contrast, server-side metrics are measured from the time Spanner receives a request until the last byte of data is sent to the client. The default Cloud Monitoring export for these metrics is enabled by default. You can opt out of the default Cloud Monitoring export with the following code: @@ -208,7 +208,7 @@ SpannerOptions options = ``` ## Traces -Cloud Spanner client supports OpenTelemetry Traces, which gives insight into the client internals and aids in debugging/troubleshooting production issues. +Cloud Spanner client supports OpenTelemetry Traces, which gives insight into the client internals and aids in debugging/troubleshooting production issues. By default, the functionality is disabled. You need to add OpenTelemetry dependencies, enable OpenTelemetry traces and must configure the OpenTelemetry with appropriate exporters at the startup of your application. @@ -287,21 +287,21 @@ This option can also be enabled by setting the environment variable #### OpenTelemetry API Tracing You can enable tracing of each API call that the Spanner client executes with the `enableApiTracing` option. These traces also include any retry attempts for an API call: - + ``` SpannerOptions options = SpannerOptions.newBuilder() .setOpenTelemetry(openTelemetry) .setEnableApiTracing(true) .build(); ``` - + This option can also be enabled by setting the environment variable `SPANNER_ENABLE_API_TRACING=true`. > Note: The attribute keys that are used for additional information about retry attempts and the number of requests might change in a future release. -#### End-to-end Tracing - +#### End-to-end Tracing + In addition to client-side tracing, you can opt in for [end-to-end tracing](https://cloud.google.com/spanner/docs/tracing-overview#end-to-end-side-tracing). End-to-end tracing helps you understand and debug latency issues that are specific to Spanner such as the following: * Identify whether the latency is due to network latency between your application and Spanner, or if the latency is occurring within Spanner. * Identify the Google Cloud regions that your application requests are being routed through and if there is a cross-region request. A cross-region request usually means higher latencies between your application and Spanner. @@ -352,7 +352,8 @@ Remove any OpenCensus-related code and dependencies from your codebase if all yo Update your dashboards and alerts to reflect below changes * **Metrics name** : `cloud.google.com/java` prefix has been removed from OpenTelemery metrics and instead has been added as Instrumenation Scope. -* **Metrics namespace** : OpenTelmetry exporters uses `workload.googleapis.com` namespace opposed to `custom.googleapis.com` with OpenCensus. +* **Metrics namespace** : OpenTelmetry exporters uses `workload.googleapis.com` namespace opposed to `custom.googleapis.com` with OpenCensus. + @@ -588,7 +589,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-spanner/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.119.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.120.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-spanneradapter/README.md b/java-spanneradapter/README.md index 9075d90e4520..0b8f5536fa38 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanneradapter - 0.30.0 + 0.31.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-spanneradapter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanneradapter:0.30.0' +implementation 'com.google.cloud:google-cloud-spanneradapter:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.31.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanneradapter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-speech/README.md b/java-speech/README.md index b1414fdcb13e..0f61292c88f2 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.89.0 + 4.90.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-speech' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.89.0' +implementation 'com.google.cloud:google-cloud-speech:4.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.90.0" ``` ## Authentication @@ -218,7 +218,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-speech/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.90.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-sql/README.md b/java-sql/README.md index dbaf9421768e..5332dc618014 100644 --- a/java-sql/README.md +++ b/java-sql/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-sql - 0.0.0 + 0.1.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-sql' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-sql:0.0.0' +implementation 'com.google.cloud:google-cloud-sql:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-sql" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-sql" % "0.1.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-sql/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-sql.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-sql/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-sql/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index 014769b2a1a6..29bc07f37805 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage-transfer - 1.94.0 + 1.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-storage-transfer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.94.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storage-transfer/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storage/README.md b/java-storage/README.md index 2db3d911b8e0..2926bd2ce3d1 100644 --- a/java-storage/README.md +++ b/java-storage/README.md @@ -45,12 +45,12 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage - 2.70.0 + 2.71.0 com.google.cloud google-cloud-storage-control - 2.70.0 + 2.71.0 ``` @@ -65,13 +65,13 @@ implementation 'com.google.cloud:google-cloud-storage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage:2.70.0' +implementation 'com.google.cloud:google-cloud-storage:2.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.71.0" ``` ## Authentication @@ -472,7 +472,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index 1a0e6c52b6db..eb8bffb71467 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storagebatchoperations - 0.34.0 + 0.35.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-storagebatchoperations' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.34.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.35.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.35.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index d3be97cec0ac..a41d3ca9a3f5 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.79.0 + 0.80.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-storageinsights' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.79.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.80.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-talent/README.md b/java-talent/README.md index 16b36d9e1250..6eb8902727b1 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-talent' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.95.0' +implementation 'com.google.cloud:google-cloud-talent:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-talent/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tasks/README.md b/java-tasks/README.md index 6c5d9fd66bee..1bd77de342a8 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-tasks' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.94.0' +implementation 'com.google.cloud:google-cloud-tasks:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index fe832883eb2d..c8fc9449e0f9 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 0.64.0 + 0.65.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-telcoautomation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.64.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.65.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-telcoautomation/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.65.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 39f92b975363..412152471cc1 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-texttospeech' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.95.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-texttospeech/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tpu/README.md b/java-tpu/README.md index d340a4448c11..9aa6380a1c4d 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-tpu' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.95.0' +implementation 'com.google.cloud:google-cloud-tpu:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tpu/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-trace/README.md b/java-trace/README.md index 30412fb37b2c..92610af9ddf3 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-trace' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.94.0' +implementation 'com.google.cloud:google-cloud-trace:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-trace/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-translate/README.md b/java-translate/README.md index 615e97a0b036..9a0a99679292 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-translate' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.94.0' +implementation 'com.google.cloud:google-cloud-translate:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.95.0" ``` ## Authentication @@ -259,7 +259,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-translate/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-valkey/README.md b/java-valkey/README.md index 4bf9e649b601..e5dec76dee36 100644 --- a/java-valkey/README.md +++ b/java-valkey/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-valkey - 0.40.0 + 0.41.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-valkey' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.40.0' +implementation 'com.google.cloud:google-cloud-valkey:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.41.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-valkey.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vectorsearch/README.md b/java-vectorsearch/README.md index 0c271366204b..05a0296b0d2d 100644 --- a/java-vectorsearch/README.md +++ b/java-vectorsearch/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vectorsearch - 0.16.0 + 0.17.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-vectorsearch' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vectorsearch:0.16.0' +implementation 'com.google.cloud:google-cloud-vectorsearch:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.16.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.17.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vectorsearch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.17.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 17198af6c8f1..6fcee83dfda3 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-intelligence - 2.93.0 + 2.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-intelligence' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.93.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-intelligence/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index ed246d10222c..36440b1f6617 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-live-stream - 0.96.0 + 0.97.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-live-stream' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.96.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.97.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index be4be52f499e..4b0e809a857c 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-stitcher - 0.94.0 + 0.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-stitcher' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.94.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-stitcher/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index 1f6c3d93b372..a57f6fa5ff94 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-transcoder - 1.93.0 + 1.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-transcoder' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.93.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-transcoder/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vision/README.md b/java-vision/README.md index eb13569fd83a..77194f0aa192 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.92.0 + 3.93.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vision' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.92.0' +implementation 'com.google.cloud:google-cloud-vision:3.93.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.93.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vision/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.92.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.93.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-visionai/README.md b/java-visionai/README.md index c12dc3d9ef27..cfc1b610f24c 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.51.0 + 0.52.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-visionai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.51.0' +implementation 'com.google.cloud:google-cloud-visionai:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.52.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-visionai/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index f40ff1c52f70..f7ff5d591a70 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.94.0 + 1.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vmmigration' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.94.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmmigration/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index 2e3755a02324..59cb9ea1239f 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 0.88.0 + 0.89.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-vmwareengine' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.88.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.89.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmwareengine/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index 172f45154dbc..2bccfa49e47d 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.95.0 + 2.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vpcaccess' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.95.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vpcaccess/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.96.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-webrisk/README.md b/java-webrisk/README.md index 97188bfe1a4d..822f816daa62 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.93.0 + 2.94.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-webrisk' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.93.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.94.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-webrisk/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.94.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index 617fcb755f8f..c1e5578f0f02 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-websecurityscanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.94.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-websecurityscanner/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index f4e83d2ef426..102ca27b1824 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflow-executions - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workflow-executions' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.94.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflow-executions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflows/README.md b/java-workflows/README.md index 5b92391d74cf..efde50fc94db 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.94.0 + 2.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workflows' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.94.0' +implementation 'com.google.cloud:google-cloud-workflows:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflows/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workloadmanager/README.md b/java-workloadmanager/README.md index 0931044deefb..6d8f5253b68d 100644 --- a/java-workloadmanager/README.md +++ b/java-workloadmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workloadmanager - 0.10.0 + 0.11.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workloadmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workloadmanager:0.10.0' +implementation 'com.google.cloud:google-cloud-workloadmanager:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.11.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workloadmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index 9c31521890b6..550ea534f159 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 0.58.0 + 0.59.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workspaceevents' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.58.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.59.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workspaceevents/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workstations/README.md b/java-workstations/README.md index f58b79e34d7a..c22dec67d7be 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.82.0 + 0.83.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workstations' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.82.0' +implementation 'com.google.cloud:google-cloud-workstations:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.83.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workstations/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.83.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles